Add Dockerfile
This commit is contained in:
parent
4c8532fc7d
commit
36c75a3a0f
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
/esbot
|
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -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…
x
Reference in New Issue
Block a user