Skip to content

Commit b83432f

Browse files
authored
Merge pull request #39 from vegasbrianc/develop
(GH-41) Switched to nginx-unprivileged image
2 parents 78d19a5 + 94b1108 commit b83432f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:1.17.8-alpine
1+
FROM nginxinc/nginx-unprivileged:1.17.8-alpine
22
LABEL MAINTAINER="BBT Software AG <devadmin@bbtsoftware.ch>"
33

44
ENV CHK_DOCKER_API_VERSION v1.38
@@ -10,10 +10,15 @@ ENV TZ UTC
1010

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

13+
USER root
14+
RUN chmod 775 /usr/share/nginx/html/
15+
RUN chown nginx:nginx /usr/share/nginx/html/
1316
RUN apk add --no-cache bash curl jq && \
1417
echo $TZ > /etc/timezone
18+
USER nginx
1519

1620
COPY docker-entrypoint.sh /usr/local/bin/
21+
1722
ENTRYPOINT ["docker-entrypoint.sh"]
1823

1924
EXPOSE 80

0 commit comments

Comments
 (0)