diff --git a/Dockerfile b/Dockerfile index 3f0137c..327acf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,11 @@ COPY . . RUN go get -d -v ./... RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . +FROM gruebel/upx:latest as upx +COPY --from=builder /go/src/git.ucode.space/goshorly/app /app.org +RUN upx --best --lzma -o /app /app.org FROM scratch as production WORKDIR /goshorly -copy --from=builder /go/src/git.ucode.space/goshorly/app /goshorly/app +copy --from=upx /app /goshorly/app CMD ["./app"] \ No newline at end of file