Update Dockerfile
Browse files- Dockerfile +11 -2
Dockerfile
CHANGED
@@ -11,6 +11,15 @@ RUN chmod 777 /app
|
|
11 |
|
12 |
RUN npm i
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
RUN npm i
|
13 |
|
14 |
+
run mkdir -p /var/lib/nginx && chmod 777 /var/lib/nginx
|
15 |
+
run mkdir -p /var/log && chmod 777 /var/log
|
16 |
+
RUN mkdir -p /etc/nginx && mkdir -p /var/run && chmod 777 -R /var && chmod 777 -R /etc/nginx && chmod 777 -R /var/run
|
17 |
+
run mkdir -p /var/log/nginx
|
18 |
+
run touch /var/log/nginx/access.log && chmod 777 /var/log/nginx/access.log
|
19 |
+
run chmod 777 /var/log/nginx
|
20 |
|
21 |
+
RUN apt update && \
|
22 |
+
apt install -y nginx
|
23 |
+
|
24 |
+
|
25 |
+
cmd nginx -c /app/nginx.conf && npm start
|