21 lines
328 B
Docker
21 lines
328 B
Docker
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"]
|