From d07dcd1398fa57de6955060a62cc0684384b1293 Mon Sep 17 00:00:00 2001 From: Thomas Leplus Date: Fri, 19 Apr 2024 15:11:11 -0300 Subject: [PATCH] Switching back to root required by openresty --- openid-connect-provider-debugger/Dockerfile | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) 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