Mediocreatmybest commited on
Commit
3956b30
·
1 Parent(s): d711d43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -46,11 +46,14 @@ ARG NODE_ENV=production
46
 
47
  RUN yarn build:app:docker
48
 
49
- RUN ls -a
 
 
50
 
51
  #COPY /opt/node_app/excalidraw/build /var/www/html
52
  #COPY /opt/node_app/excalidraw/build /var/www/html
53
- RUN echo "index.html" > /var/www/html/index.html
 
54
 
55
  WORKDIR /opt/node_app/
56
 
@@ -63,5 +66,5 @@ EXPOSE 3000
63
 
64
  # Start the development server
65
  #CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
66
- #CMD ["python3", "app.py"]
67
- CMD ["nginx", "-g", "daemon off;"]
 
46
 
47
  RUN yarn build:app:docker
48
 
49
+ WORKDIR /opt/node_app/excalidraw/build
50
+
51
+ COPY . /var/www/html/
52
 
53
  #COPY /opt/node_app/excalidraw/build /var/www/html
54
  #COPY /opt/node_app/excalidraw/build /var/www/html
55
+ RUN mkdir -p /opt/node_app/excalidraw/build
56
+ RUN echo "index.html" > /opt/node_app/excalidraw/build/index.html
57
 
58
  WORKDIR /opt/node_app/
59
 
 
66
 
67
  # Start the development server
68
  #CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
69
+ CMD ["python3", "app.py"]
70
+ #CMD ["nginx", "-g", "daemon off;"]