BibleBot/Dockerfile

25 lines
268 B
Docker
Raw Normal View History

2022-12-19 03:22:21 +00:00
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"]