Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -21,5 +21,10 @@ run chmod 777 /var/log/nginx
|
|
21 |
RUN apt update && \
|
22 |
apt install -y nginx
|
23 |
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
cmd nginx -c /app/nginx.conf && npm start
|
|
|
21 |
RUN apt update && \
|
22 |
apt install -y nginx
|
23 |
|
24 |
+
WORKDIR /app/public
|
25 |
+
run npm i && npm run build
|
26 |
+
|
27 |
+
WORKDIR /app
|
28 |
+
|
29 |
|
30 |
cmd nginx -c /app/nginx.conf && npm start
|