2017-10-13 09:25:19 +02:00
|
|
|
FROM vmware/photon:1.0
|
2017-06-30 08:03:42 +02:00
|
|
|
|
2017-12-20 06:10:32 +01:00
|
|
|
RUN tdnf distro-sync -y \
|
2018-02-27 08:01:14 +01:00
|
|
|
&& tdnf install -y nginx >> /dev/null\
|
2017-06-30 08:03:42 +02:00
|
|
|
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
|
|
|
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
2017-10-13 09:25:19 +02:00
|
|
|
&& tdnf clean all
|
2017-06-30 08:03:42 +02:00
|
|
|
|
|
|
|
EXPOSE 80
|
2017-11-08 14:22:00 +01:00
|
|
|
VOLUME /var/cache/nginx /var/log/nginx /run
|
2017-06-30 08:03:42 +02:00
|
|
|
STOPSIGNAL SIGQUIT
|
|
|
|
|
2018-03-28 08:52:42 +02:00
|
|
|
HEALTHCHECK CMD curl --fail -s http://127.0.0.1 || exit 1
|
|
|
|
|
2017-06-30 08:03:42 +02:00
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|