Create folder and Copy with permissions
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c532661bd6
commit
bf8d5574e9
@ -8,6 +8,8 @@ RUN go mod download
|
||||
|
||||
COPY . /src
|
||||
|
||||
RUN mkdir /webdav/root && chown -R 101:101 /webdav
|
||||
|
||||
ENV GO113MODULE=on
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o app .
|
||||
|
||||
@ -23,10 +25,9 @@ COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certifica
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN mkdir /webdav/root && chown -R 101:101 /webdav
|
||||
|
||||
USER 101
|
||||
|
||||
COPY --from=build-env --chown=101:101 /webdav /webdav
|
||||
COPY --from=build-env /src/app .
|
||||
|
||||
ENTRYPOINT [ "./app" ]
|
||||
|
Loading…
Reference in New Issue
Block a user