smgc commited on
Commit
1cf014e
1 Parent(s): 98459c1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -5,6 +5,8 @@ COPY --from=nginx:alpine /usr/sbin/nginx /usr/sbin/nginx
5
 
6
  COPY nginx.conf /etc/nginx/nginx.conf
7
 
 
 
8
  RUN mkdir -p /var/log/nginx && \
9
  mkdir -p /var/cache/nginx && \
10
  mkdir -p /var/run && \
@@ -18,6 +20,6 @@ EXPOSE 3001
18
 
19
  RUN chmod 777 -R /app
20
 
21
- ENTRYPOINT ["sh", "-c", "nginx]
22
 
23
- CMD ["node" "run.js"]
 
5
 
6
  COPY nginx.conf /etc/nginx/nginx.conf
7
 
8
+ USER root
9
+
10
  RUN mkdir -p /var/log/nginx && \
11
  mkdir -p /var/cache/nginx && \
12
  mkdir -p /var/run && \
 
20
 
21
  RUN chmod 777 -R /app
22
 
23
+ ENTRYPOINT ["sh", "-c", "nginx"]
24
 
25
+ CMD ["node", "run.js"]