Fiddling with UID-s is none of Docker's business
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2023-01-10 15:17:48 +02:00
parent 87b7c7270d
commit 990bf2d721
1 changed files with 2 additions and 4 deletions

View File

@ -53,8 +53,8 @@ FROM $BASE_IMAGE
# See https://go.dev/src/crypto/x509/root_linux.go for Go root CA bundle locations.
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=stager --chown=1001:1001 /var/dex /var/dex
COPY --from=stager --chown=1001:1001 /etc/dex /etc/dex
COPY --from=stager /var/dex /var/dex
COPY --from=stager /etc/dex /etc/dex
# Copy module files for CVE scanning / dependency analysis.
COPY --from=builder /usr/local/src/dex/go.mod /usr/local/src/dex/go.sum /usr/local/src/dex/
@ -66,7 +66,5 @@ COPY --from=builder /usr/local/src/dex/web /srv/dex/web
COPY --from=gomplate /usr/local/bin/gomplate /usr/local/bin/gomplate
USER 1001:1001
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]
CMD ["dex", "serve", "/etc/dex/config.docker.yaml"]