Skip to content

Commit

Permalink
switched to nginx-unprivileged image
Browse files Browse the repository at this point in the history
  • Loading branch information
vegasbrianc authored and pascalberger committed Jan 30, 2020
1 parent 78d19a5 commit 94b1108
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginx:1.17.8-alpine
FROM nginxinc/nginx-unprivileged:1.17.8-alpine
LABEL MAINTAINER="BBT Software AG <[email protected]>"

ENV CHK_DOCKER_API_VERSION v1.38
Expand All @@ -10,10 +10,15 @@ ENV TZ UTC

COPY index.html /usr/share/nginx/html/index.html

USER root
RUN chmod 775 /usr/share/nginx/html/
RUN chown nginx:nginx /usr/share/nginx/html/
RUN apk add --no-cache bash curl jq && \
echo $TZ > /etc/timezone
USER nginx

COPY docker-entrypoint.sh /usr/local/bin/

ENTRYPOINT ["docker-entrypoint.sh"]

EXPOSE 80
Expand Down

0 comments on commit 94b1108

Please sign in to comment.