2018-10-18 05:03:28 +02:00
|
|
|
FROM photon:2.0
|
2017-06-30 08:03:42 +02:00
|
|
|
|
2019-07-29 09:52:17 +02:00
|
|
|
RUN tdnf install sudo nginx -y >> /dev/null\
|
|
|
|
&& tdnf clean all \
|
|
|
|
&& groupadd -r -g 10000 nginx && useradd --no-log-init -r -g 10000 -u 10000 nginx \
|
2017-06-30 08:03:42 +02:00
|
|
|
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
2019-07-29 09:52:17 +02:00
|
|
|
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
2017-06-30 08:03:42 +02:00
|
|
|
|
2017-11-08 14:22:00 +01:00
|
|
|
VOLUME /var/cache/nginx /var/log/nginx /run
|
2019-07-29 09:52:17 +02:00
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
2017-06-30 08:03:42 +02:00
|
|
|
STOPSIGNAL SIGQUIT
|
|
|
|
|
2019-07-29 09:52:17 +02:00
|
|
|
HEALTHCHECK CMD curl --fail -s http://127.0.0.1:8080 || exit 1
|
|
|
|
|
|
|
|
USER nginx
|
2018-03-28 08:52:42 +02:00
|
|
|
|
2017-06-30 08:03:42 +02:00
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|