Add Dockerfile
This commit is contained in:
parent
4c8532fc7d
commit
36c75a3a0f
|
@ -0,0 +1 @@
|
||||||
|
/esbot
|
|
@ -0,0 +1,20 @@
|
||||||
|
FROM golang:alpine as builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY go.mod .
|
||||||
|
COPY go.sum .
|
||||||
|
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
|
||||||
|
|
||||||
|
# final stage
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=builder /app/esbot /app/
|
||||||
|
COPY internal/lang/resources/jehle_verb_database.csv /app/verbs.csv
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ENTRYPOINT ["/app/esbot"]
|
Loading…
Reference in New Issue