1
0
Fork 0

refactor: move app entrypoint to ./cmd/server

This commit is contained in:
Vojtěch Mareš 2024-02-28 20:59:15 +01:00
parent bb8e1aceb1
commit 63cc8628bc
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
3 changed files with 18 additions and 13 deletions

View file

@ -8,7 +8,7 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o backoffice-api .
RUN CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/server
FROM alpine:3.19
@ -17,6 +17,6 @@ WORKDIR /app
RUN apk add --no-cache ca-certificates
COPY --from=builder /build/backoffice-api .
COPY --from=builder /build/server .
CMD ["/app/backoffice-api"]
CMD ["/app/server"]