calendrier/Dockerfile

21 lines
346 B
Text
Raw Permalink Normal View History

2024-02-24 16:26:57 +01:00
FROM golang:1.22-alpine AS back
WORKDIR /usr/src/back/clandrier
#RUN go install github.com/swaggo/swag/cmd/swag@latest
COPY go.mod .
COPY go.sum .
RUN go mod download && go mod verify
COPY . .
#RUN swag init
RUN go build
FROM alpine AS app
WORKDIR /app
COPY --from=back /usr/src/back/clandrier/calendrier .
CMD ["./calendrier"]
EXPOSE 8080