chore(docker): move copying the dex binary up in Dockerfile

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2021-01-23 18:46:56 +01:00
parent fade69b5ae
commit b19fe5b49d
No known key found for this signature in database
GPG key ID: 34CC109EB5ED1C2A

View file

@ -40,10 +40,10 @@ RUN chown -R 1001:1001 /var/dex
COPY --from=0 /usr/local/src/dex/go.mod /usr/local/src/dex/go.sum /usr/local/src/dex/
COPY --from=0 /usr/local/src/dex/api/v2/go.mod /usr/local/src/dex/api/v2/go.sum /usr/local/src/dex/api/v2/
USER 1001:1001
COPY --from=0 /go/bin/dex /usr/local/bin/dex
USER 1001:1001
# Import frontend assets and set the correct CWD directory so the assets
# are in the default path.
COPY web web