Spaces:
Build error
Build error
Mediocreatmybest
commited on
Commit
•
c7b130c
1
Parent(s):
f437c9b
Update Dockerfile
Browse files- Dockerfile +10 -6
Dockerfile
CHANGED
@@ -44,8 +44,9 @@ ARG NODE_ENV=production
|
|
44 |
|
45 |
# Build prod
|
46 |
|
47 |
-
RUN yarn build:app:docker && \
|
48 |
-
cp -R build/* /var/www/html
|
|
|
49 |
|
50 |
#WORKDIR /opt/node_app/excalidraw/build
|
51 |
|
@@ -57,21 +58,24 @@ RUN yarn build:app:docker && \
|
|
57 |
#RUN echo "index.html" > /opt/node_app/excalidraw/build/index.html
|
58 |
|
59 |
#WORKDIR /opt/node_app/
|
60 |
-
WORKDIR /var/www/html/
|
61 |
|
62 |
# Copy fastapi app
|
63 |
#COPY app.py .
|
64 |
#COPY nginx.conf /etc/nginx/sites-available/default
|
65 |
|
66 |
-
RUN ls -a /var/www/html/
|
67 |
|
68 |
-
RUN cat /var/www/html/index.html
|
69 |
|
70 |
# Make port 3000 available outside the container
|
71 |
EXPOSE 3000
|
72 |
|
|
|
73 |
# Start the development server
|
74 |
#CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
|
75 |
#CMD ["python3", "app.py"]
|
76 |
#CMD ["nginx", "-g", "daemon off;"]
|
77 |
-
CMD ["python3", "-m", "http.server", "3000"]
|
|
|
|
|
|
44 |
|
45 |
# Build prod
|
46 |
|
47 |
+
#RUN yarn build:app:docker && \
|
48 |
+
# cp -R build/* /var/www/html
|
49 |
+
|
50 |
|
51 |
#WORKDIR /opt/node_app/excalidraw/build
|
52 |
|
|
|
58 |
#RUN echo "index.html" > /opt/node_app/excalidraw/build/index.html
|
59 |
|
60 |
#WORKDIR /opt/node_app/
|
61 |
+
#WORKDIR /var/www/html/
|
62 |
|
63 |
# Copy fastapi app
|
64 |
#COPY app.py .
|
65 |
#COPY nginx.conf /etc/nginx/sites-available/default
|
66 |
|
67 |
+
#RUN ls -a /var/www/html/
|
68 |
|
69 |
+
#RUN cat /var/www/html/index.html
|
70 |
|
71 |
# Make port 3000 available outside the container
|
72 |
EXPOSE 3000
|
73 |
|
74 |
+
|
75 |
# Start the development server
|
76 |
#CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
|
77 |
#CMD ["python3", "app.py"]
|
78 |
#CMD ["nginx", "-g", "daemon off;"]
|
79 |
+
#CMD ["python3", "-m", "http.server", "3000"]
|
80 |
+
COPY start.sh .
|
81 |
+
CMD ["start.sh"]
|