Mediocreatmybest commited on
Commit
83927d6
1 Parent(s): d5f7422

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -9,6 +9,9 @@ RUN apt update
9
  RUN apt install python3-pip python3-uvicorn python3-fastapi -y
10
  #RUN apt install git yarn -y
11
  #RUN npm install --global yarn
 
 
 
12
 
13
 
14
  #RUN npm install react react-dom @excalidraw/excalidraw vscode-languageclient -g
@@ -45,14 +48,18 @@ ARG NODE_ENV=production
45
 
46
  RUN yarn build:app:docker
47
 
 
 
48
  WORKDIR /opt/node_app/
49
 
50
  # Copy fastapi app
51
- COPY app.py .
 
52
 
53
  # Make port 3000 available outside the container
54
  EXPOSE 3000
55
 
56
  # Start the development server
57
  #CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
58
- CMD ["python3", "app.py"]
 
 
9
  RUN apt install python3-pip python3-uvicorn python3-fastapi -y
10
  #RUN apt install git yarn -y
11
  #RUN npm install --global yarn
12
+ RUN apt install nginx -y && \
13
+ chown -R user:user /var/www/html && \
14
+ chown -R user:user /var/log/nginx
15
 
16
 
17
  #RUN npm install react react-dom @excalidraw/excalidraw vscode-languageclient -g
 
48
 
49
  RUN yarn build:app:docker
50
 
51
+ COPY /opt/node_app/excalidraw/build /var/www/html
52
+
53
  WORKDIR /opt/node_app/
54
 
55
  # Copy fastapi app
56
+ #COPY app.py .
57
+ COPY nginx.conf /etc/nginx/sites-available/default
58
 
59
  # Make port 3000 available outside the container
60
  EXPOSE 3000
61
 
62
  # Start the development server
63
  #CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
64
+ #CMD ["python3", "app.py"]
65
+ CMD ["nginx", "-g", "daemon off;"]