Browse Source

create required directory to store nginx pid

bubble
Chunyang Wang 7 years ago
committed by GitHub
parent
commit
f8e5e57540
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      Dockerfile

+ 3
- 2
Dockerfile 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;'

Loading…
Cancel
Save