Fix permissions issue
This commit is contained in:
parent
2241a1a460
commit
b8066bdc99
|
@ -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" ]
|
Loading…
Reference in New Issue