Fix permissions issue

This commit is contained in:
Julian Bensch 2023-01-12 16:14:29 +01:00
parent 2241a1a460
commit b8066bdc99
1 changed files with 2 additions and 4 deletions

View File

@ -18,10 +18,8 @@ RUN ls -al
RUN go build -a -tags musl -o /build/app
######################################
FROM golang:alpine
LABEL AUTHOR="AUTHOR"
ENV GOCACHE=off
LABEL AUTHOR="Linuxcode"
#RUN apk --no-cache add curl
USER nobody
COPY --from=builder --chown=nobody /build/app /custom/app
COPY --from=builder /build/app /custom/app
RUN go install golang.org/x/tools/cmd/goimports@latest
ENTRYPOINT [ "/custom/app" ]