21 lines
346 B
Text
21 lines
346 B
Text
|
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
|