fix: update Dockerfile to change output binary names for backend and worker services

This commit is contained in:
keven1024
2025-06-02 15:48:01 +08:00
parent 2f40b9ce78
commit b013fc36fa
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && g
COPY . .
# Build
RUN CGO_ENABLED=0 GOOS=linux go build -o /backend
RUN CGO_ENABLED=0 GOOS=linux go build -o backend
# Optional:
# To bind to a TCP port, runtime parameters must be supplied to the docker command.

View File

@@ -15,7 +15,7 @@ RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && g
COPY . .
# Build
RUN CGO_ENABLED=0 GOOS=linux go build -o /worker
RUN CGO_ENABLED=0 GOOS=linux go build -o worker
FROM alpine:3
RUN apk add --no-cache pngquant jpegoptim