Merge branch 'bug/upx-arm' into 'main'

Removed UPX to ensure ARM build in next feature

Closes #7

See merge request Phil/goshorly!6
This commit is contained in:
Phil 2022-01-05 23:46:57 +01:00
commit d54d7245bd

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=builder /go/src/git.ucode.space/goshorly/app /goshorly/app
CMD ["./app"] CMD ["./app"]