This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
bottin-agenda/Dockerfile
Victor Lacasse-Beaudoin 96f8dfa35e Migrate to version 2
2023-05-29 17:58:23 -04:00

25 lines
411 B
Docker

FROM golang:1.20.2 as build
LABEL author="vlbeaudoin"
WORKDIR /go/src/app
COPY go.mod go.sum main.go ./
ADD cmd/ cmd/
ADD data/ data/
ADD handlers/ handlers/
ADD models/ models/
#ADD web/ web/
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o bottin-agenda .
# Alpine
FROM alpine:latest
WORKDIR /app
COPY --from=build /go/src/app/bottin-agenda /usr/bin/bottin-agenda
CMD ["bottin-agenda", "--help"]