1
0
Fork 0

chore(build): fix docker build with moved main

This commit is contained in:
Vojtěch Mareš 2024-04-28 15:16:20 +02:00
parent ac52934ee7
commit f691125492
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

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