Removed UPX to ensure ARM build in next feature

This commit is contained in:
Phil 2022-01-05 23:34:07 +01:00
parent 5023159f8a
commit 8ae5fc244d

View file

@ -8,11 +8,7 @@ COPY . .
RUN go get -d -v ./... RUN go get -d -v ./...
RUN chmod +x build-ci.sh && ./build-ci.sh RUN chmod +x build-ci.sh && ./build-ci.sh
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 FROM scratch as production
WORKDIR /goshorly WORKDIR /goshorly
copy --from=upx /app /goshorly/app COPY --from=upx /go/src/git.ucode.space/goshorly/app /goshorly/app
CMD ["./app"] CMD ["./app"]