-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM nginx:1.17.3-alpine | ||
FROM nginxinc/nginx-unprivileged:1.17.8-alpine | ||
LABEL MAINTAINER="BBT Software AG <[email protected]>" | ||
|
||
ENV CHK_DOCKER_API_VERSION v1.38 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters