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

28 lines
431 B
Text
Raw Permalink Normal View History

2024-09-16 15:23:55 -04:00
FROM golang:1.23.1 as build
2023-05-29 17:58:23 -04:00
LABEL author="vlbeaudoin"
WORKDIR /go/src/app
2023-05-29 17:58:23 -04:00
COPY go.mod go.sum main.go ./
2023-05-29 17:58:23 -04:00
ADD cmd/ cmd/
ADD data/ data/
ADD handlers/ handlers/
ADD models/ models/
ADD responses/ responses/
ADD sql/ sql/
ADD web/ web/
2024-09-16 14:36:51 -04:00
RUN CGO_ENABLED=0 go build -a -o bottin-agenda .
2023-05-29 17:58:23 -04:00
# Alpine
FROM alpine:latest
WORKDIR /app
COPY --from=build /go/src/app/bottin-agenda /usr/bin/bottin-agenda
CMD ["bottin-agenda", "--help"]