Spaces:
Build error
Build error
Commit
·
d733a09
1
Parent(s):
de37a46
Update Dockerfile
Browse files- Dockerfile +2 -23
Dockerfile
CHANGED
|
@@ -18,35 +18,16 @@ RUN yarn && yarn build
|
|
| 18 |
|
| 19 |
WORKDIR /opt/node_app/excalidraw
|
| 20 |
# Set app server to localhost
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
# Setup npm / yarn / deps
|
| 24 |
-
#RUN npm install react react-dom
|
| 25 |
-
#RUN npm install workbox-build workbox-window eslint
|
| 26 |
-
#RUN yarn add react react-dom @excalidraw/excalidraw workbox-build workbox-window eslint
|
| 27 |
|
| 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 |
|
| 45 |
-
#
|
| 46 |
-
#CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
|
| 47 |
-
#CMD ["python3", "app.py"]
|
| 48 |
-
#CMD ["nginx", "-g", "daemon off;"]
|
| 49 |
-
#CMD ["python3", "-m", "http.server", "3000"]
|
| 50 |
COPY start.sh .
|
| 51 |
# switch back to root to execute start commands
|
| 52 |
USER root
|
|
@@ -59,5 +40,3 @@ RUN apt update && \
|
|
| 59 |
|
| 60 |
RUN chmod +x start.sh
|
| 61 |
CMD /bin/bash start.sh
|
| 62 |
-
#HEALTHCHECK CMD wget -q -O /dev/null http://localhost:5001 || exit 1
|
| 63 |
-
#CMD ["yarn", "start:production"]
|
|
|
|
| 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 |
# Run yarn to install deps
|
| 24 |
RUN yarn --ignore-optional --network-timeout 600000
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
# Make port 3000 available outside the container
|
| 28 |
EXPOSE 5001
|
| 29 |
|
| 30 |
+
# Copy start file
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
COPY start.sh .
|
| 32 |
# switch back to root to execute start commands
|
| 33 |
USER root
|
|
|
|
| 40 |
|
| 41 |
RUN chmod +x start.sh
|
| 42 |
CMD /bin/bash start.sh
|
|
|
|
|
|