Skip to content

Commit fad61ff

Browse files
committed
fix: remove upx
upx does not optimize for storage by sacrificing runtime memory which is much more expensive
1 parent 088c22b commit fad61ff

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

server/deploy/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ RUN apk --no-cache add ca-certificates && GRPC_HEALTH_PROBE_VERSION=v0.4.2 && \
44
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
55
chmod +x /bin/grpc_health_probe
66

7-
RUN apk add upx
8-
97
WORKDIR /src/
108
COPY go.mod .
119
COPY go.sum .
1210
RUN go mod download
1311
COPY . .
1412
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-w -s" -o server cmd/server/main.go
15-
RUN upx server
1613

1714
FROM gcr.io/distroless/static:nonroot
1815

0 commit comments

Comments
 (0)