Spaces:
Build error
Build error
Commit
·
b1c8cba
1
Parent(s):
698e726
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -24,8 +24,10 @@ WORKDIR /opt/node_app/excalidraw
|
|
| 24 |
# Run yarn to install deps
|
| 25 |
#RUN yarn
|
| 26 |
|
| 27 |
-
RUN yarn --ignore-optional --network-timeout 600000
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
|
| 30 |
# Set prod build
|
| 31 |
|
|
@@ -66,6 +68,8 @@ EXPOSE 5001
|
|
| 66 |
#CMD ["nginx", "-g", "daemon off;"]
|
| 67 |
#CMD ["python3", "-m", "http.server", "3000"]
|
| 68 |
COPY start.sh .
|
|
|
|
|
|
|
| 69 |
RUN chmod +x start.sh
|
| 70 |
#RUN yarn build
|
| 71 |
CMD /bin/bash start.sh
|
|
|
|
| 24 |
# Run yarn to install deps
|
| 25 |
#RUN yarn
|
| 26 |
|
| 27 |
+
RUN yarn --ignore-optional --network-timeout 600000
|
| 28 |
+
|
| 29 |
+
#&& \
|
| 30 |
+
# chmod 777 -R /opt/node_app/
|
| 31 |
|
| 32 |
# Set prod build
|
| 33 |
|
|
|
|
| 68 |
#CMD ["nginx", "-g", "daemon off;"]
|
| 69 |
#CMD ["python3", "-m", "http.server", "3000"]
|
| 70 |
COPY start.sh .
|
| 71 |
+
# switch back to root to execute start commands
|
| 72 |
+
USER root
|
| 73 |
RUN chmod +x start.sh
|
| 74 |
#RUN yarn build
|
| 75 |
CMD /bin/bash start.sh
|