diff --git a/openid-connect-provider-debugger/Dockerfile b/openid-connect-provider-debugger/Dockerfile index 10f4999..5f8375a 100644 --- a/openid-connect-provider-debugger/Dockerfile +++ b/openid-connect-provider-debugger/Dockerfile @@ -2,11 +2,6 @@ FROM openresty/openresty:alpine HEALTHCHECK CMD ["/usr/bin/curl", "-i", "-s", "-S", "-f", "http://localhost"] -ARG USER_NAME=default -ARG USER_HOME=/home/default -ARG USER_ID=1000 -ARG USER_GECOS=Default - # hadolint ignore=DL3018 RUN apk update \ && apk --no-cache add curl patch perl \ @@ -18,23 +13,11 @@ RUN apk update \ COPY nginx.conf.patch /usr/local/openresty/nginx/conf/nginx.conf.patch RUN patch /usr/local/openresty/nginx/conf/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf.patch \ - && rm -f /usr/local/openresty/nginx/conf/nginx.conf.patch + && rm -f /usr/local/openresty/nginx/conf/nginx.conf.patch \ + && chmod o+rwx /var/run/openresty COPY default.conf /etc/nginx/conf.d/default.conf COPY index.html /usr/local/openresty/nginx/html/index.html -RUN adduser \ - --home "${USER_HOME}" \ - --uid "${USER_ID}" \ - --gecos "${USER_GECOS}" \ - --disabled-password \ - "${USER_NAME}" - -ENV HOME "${USER_HOME}" - -USER "${USER_NAME}" - -WORKDIR "${HOME}" - EXPOSE 80 443