Spaces:
Running
Running
Commit ·
7866d0d
1
Parent(s): 475c512
Update dpckerfile
Browse files- Dockerfile +4 -4
- start.sh +1 -0
Dockerfile
CHANGED
|
@@ -33,8 +33,8 @@ RUN chmod -R 777 /app/node_modules/.cache || true
|
|
| 33 |
# Build app
|
| 34 |
WORKDIR /app
|
| 35 |
|
| 36 |
-
RUN npm run bundle || true
|
| 37 |
-
RUN npm run skip-font-warn || true
|
| 38 |
|
| 39 |
# Copy nginx config and start script
|
| 40 |
COPY --chown=1000 nginx.conf /etc/nginx/nginx.conf
|
|
@@ -49,6 +49,6 @@ ENV DISPLAY=:99
|
|
| 49 |
|
| 50 |
# Start Xvfb and then your app
|
| 51 |
USER 1000
|
| 52 |
-
|
| 53 |
-
CMD ["/app/start.sh"]
|
| 54 |
|
|
|
|
| 33 |
# Build app
|
| 34 |
WORKDIR /app
|
| 35 |
|
| 36 |
+
# RUN npm run bundle || true
|
| 37 |
+
# RUN npm run skip-font-warn || true
|
| 38 |
|
| 39 |
# Copy nginx config and start script
|
| 40 |
COPY --chown=1000 nginx.conf /etc/nginx/nginx.conf
|
|
|
|
| 49 |
|
| 50 |
# Start Xvfb and then your app
|
| 51 |
USER 1000
|
| 52 |
+
|
| 53 |
+
CMD ["sh", "/app/start.sh"]
|
| 54 |
|
start.sh
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
set -e
|
|
|
|
| 3 |
|
| 4 |
echo "Starting app (npm start) in background..."
|
| 5 |
npm start &
|
|
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
set -e
|
| 3 |
+
# Xvfb :99 -screen 0 1920x1080x24 &
|
| 4 |
|
| 5 |
echo "Starting app (npm start) in background..."
|
| 6 |
npm start &
|