From 3b80d480e576fc58a0d04c1bed0ca06529d2217d Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Mon, 22 Mar 2021 11:59:55 +0100 Subject: [PATCH] feat!: move web assets to /srv in Dockerfile Signed-off-by: Mark Sagi-Kazar --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7e56ea72..732b8156 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,16 +54,12 @@ COPY --from=builder /usr/local/src/dex/go.mod /usr/local/src/dex/go.sum /usr/loc COPY --from=builder /usr/local/src/dex/api/v2/go.mod /usr/local/src/dex/api/v2/go.sum /usr/local/src/dex/api/v2/ COPY --from=builder /go/bin/dex /usr/local/bin/dex +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 -# Import frontend assets and set the correct CWD directory so the assets -# are in the default path. -COPY --from=builder /usr/local/src/dex/web /web - -USER 1001:1001 - COPY docker-entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]