mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
fix: update Dockerfile to change output binary names for backend and worker services
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user