BibleBot/Dockerfile

25 lines
268 B
Docker

FROM golang:1.16-buster AS build
WORKDIR /app
COPY go.mod ./
COPY go.sum ./
ENV CGO_ENABLED 0
RUN go mod download
COPY *.go ./
RUN go build -o /biblebot *.go
##
## Deploy
##
FROM alpine
WORKDIR /
COPY --from=build /biblebot /biblebot
ENTRYPOINT ["/biblebot"]