chore(docker): add a data directory for dex to var

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

View file

@ -33,6 +33,9 @@ WORKDIR /
# OpenSSL is required so wget can query HTTPS endpoints for health checking. # OpenSSL is required so wget can query HTTPS endpoints for health checking.
RUN apk add --no-cache --update ca-certificates openssl RUN apk add --no-cache --update ca-certificates openssl
RUN mkdir -p /var/dex
RUN chown -R 1001:1001 /var/dex
USER 1001:1001 USER 1001:1001
COPY --from=0 /go/bin/dex /usr/local/bin/dex COPY --from=0 /go/bin/dex /usr/local/bin/dex