Mediocreatmybest commited on
Commit
ad82248
1 Parent(s): 60afc57

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -21
Dockerfile CHANGED
@@ -18,11 +18,7 @@ RUN yarn && yarn build
18
 
19
  WORKDIR /opt/node_app/excalidraw
20
  # Set app server to localhost
21
- RUN sed -i 's/VITE_APP_WS_SERVER_URL=/VITE_APP_WS_SERVER_URL=http:\/\/localhost/' .env.production
22
-
23
- # Set ENV on dev / prod
24
- #RUN echo -e "\n\nBROWSER=NONE" >> .env.development
25
- #RUN echo -e "\n\nBROWSER=NONE" >> .env.development
26
 
27
  # Setup npm / yarn / deps
28
  #RUN npm install react react-dom
@@ -32,32 +28,17 @@ RUN sed -i 's/VITE_APP_WS_SERVER_URL=/VITE_APP_WS_SERVER_URL=http:\/\/localhost/
32
  # Run yarn to install deps
33
  RUN yarn --ignore-optional --network-timeout 600000
34
 
35
- # Build prod
36
-
37
  #RUN yarn build:app:docker && \
38
  # cp -R build/* /var/www/html
39
-
40
-
41
  #WORKDIR /opt/node_app/excalidraw/build
42
-
43
  #COPY . /var/www/html/
44
 
45
- #COPY /opt/node_app/excalidraw/build /var/www/html
46
- #COPY /opt/node_app/excalidraw/build /var/www/html
47
  #RUN mkdir -p /opt/node_app/excalidraw/build
48
  #RUN echo "index.html" > /opt/node_app/excalidraw/build/index.html
49
-
50
  #WORKDIR /opt/node_app/
51
  #WORKDIR /var/www/html/
52
 
53
- # Copy fastapi app
54
- #COPY app.py .
55
- #COPY nginx.conf /etc/nginx/sites-available/default
56
-
57
- #RUN ls -a /var/www/html/
58
-
59
- #RUN cat /var/www/html/index.html
60
-
61
  # Make port 3000 available outside the container
62
  EXPOSE 5001
63
 
 
18
 
19
  WORKDIR /opt/node_app/excalidraw
20
  # Set app server to localhost
21
+ #RUN sed -i 's/VITE_APP_WS_SERVER_URL=/VITE_APP_WS_SERVER_URL=http:\/\/localhost/' .env.production
 
 
 
 
22
 
23
  # Setup npm / yarn / deps
24
  #RUN npm install react react-dom
 
28
  # Run yarn to install deps
29
  RUN yarn --ignore-optional --network-timeout 600000
30
 
31
+ # Build docker version
 
32
  #RUN yarn build:app:docker && \
33
  # cp -R build/* /var/www/html
 
 
34
  #WORKDIR /opt/node_app/excalidraw/build
 
35
  #COPY . /var/www/html/
36
 
 
 
37
  #RUN mkdir -p /opt/node_app/excalidraw/build
38
  #RUN echo "index.html" > /opt/node_app/excalidraw/build/index.html
 
39
  #WORKDIR /opt/node_app/
40
  #WORKDIR /var/www/html/
41
 
 
 
 
 
 
 
 
 
42
  # Make port 3000 available outside the container
43
  EXPOSE 5001
44