create required directory to store nginx pid

This commit is contained in:
Chunyang Wang
2016-12-01 16:55:59 +08:00
committed by GitHub
parent bfc6dbd50f
commit f8e5e57540

View File

@@ -1,12 +1,13 @@
FROM alpine:3.3
FROM alpine:3.4
MAINTAINER Roman Tarnavski
RUN apk add --update nginx
RUN mkdir -p /run/nginx
COPY nginx.conf /etc/nginx/
ADD ./dist/ /usr/share/nginx/html
EXPOSE 8080
CMD nginx -g 'daemon off;'
CMD nginx -g 'daemon off;'