Change User Position
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lennard Brinkhaus 2022-01-10 15:12:47 +01:00
parent 093700b621
commit 9c9a87635e
No known key found for this signature in database
GPG Key ID: 015DB28D8EEE19EC

View File

@ -136,6 +136,8 @@ RUN sed -i 's,listen 80;,listen 8080;,' /etc/nginx/conf.d/default.co
&& chown -R $UID:0 /etc/nginx \ && chown -R $UID:0 /etc/nginx \
&& chmod -R g+w /etc/nginx && chmod -R g+w /etc/nginx
USER $UID
COPY 1.21/docker-entrypoint.sh / COPY 1.21/docker-entrypoint.sh /
COPY 1.21/10-listen-on-ipv6-by-default.sh /docker-entrypoint.d COPY 1.21/10-listen-on-ipv6-by-default.sh /docker-entrypoint.d
COPY 1.21/20-envsubst-on-templates.sh /docker-entrypoint.d COPY 1.21/20-envsubst-on-templates.sh /docker-entrypoint.d
@ -146,6 +148,4 @@ EXPOSE 8080
STOPSIGNAL SIGQUIT STOPSIGNAL SIGQUIT
USER $UID
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]