mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
chore: update Dockerfile to rename output binary from 'worker' to 'worker-bin' for clarity in build process
This commit is contained in:
@@ -11,9 +11,9 @@ COPY pkg/ ./pkg/
|
||||
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && \
|
||||
go mod download
|
||||
# Build
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o worker ./worker
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o worker-bin ./worker
|
||||
|
||||
FROM alpine:3
|
||||
RUN apk add --no-cache pngquant jpegoptim imagemagick
|
||||
COPY --from=builder /app/worker /bin/worker
|
||||
COPY --from=builder /app/worker-bin /bin/worker
|
||||
ENTRYPOINT ["/bin/worker"]
|
||||
Reference in New Issue
Block a user