chore(build): fix docker build with moved main
This commit is contained in:
parent
ac52934ee7
commit
f691125492
1 changed files with 3 additions and 3 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Reference in a new issue