Create folder and Copy with permissions
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Lennard Brinkhaus 2022-01-10 18:10:19 +01:00
parent c532661bd6
commit bf8d5574e9
No known key found for this signature in database
GPG Key ID: 015DB28D8EEE19EC

View File

@ -8,6 +8,8 @@ RUN go mod download
COPY . /src COPY . /src
RUN mkdir /webdav/root && chown -R 101:101 /webdav
ENV GO113MODULE=on ENV GO113MODULE=on
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o app . 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 WORKDIR /app
RUN mkdir /webdav/root && chown -R 101:101 /webdav
USER 101 USER 101
COPY --from=build-env --chown=101:101 /webdav /webdav
COPY --from=build-env /src/app . COPY --from=build-env /src/app .
ENTRYPOINT [ "./app" ] ENTRYPOINT [ "./app" ]