Spaces:
Paused
Paused
Upload Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -8,7 +8,10 @@ COPY patch_frontend.py /tmp/patch_frontend.py
|
|
| 8 |
RUN python3 /tmp/patch_frontend.py
|
| 9 |
|
| 10 |
WORKDIR /source/frontend
|
| 11 |
-
RUN npm
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Stage 2: Production
|
| 14 |
FROM python:3.12-slim
|
|
|
|
| 8 |
RUN python3 /tmp/patch_frontend.py
|
| 9 |
|
| 10 |
WORKDIR /source/frontend
|
| 11 |
+
RUN npm config set fetch-timeout 120000 && \
|
| 12 |
+
npm config set fetch-retries 3 && \
|
| 13 |
+
npm install && \
|
| 14 |
+
npm run build
|
| 15 |
|
| 16 |
# Stage 2: Production
|
| 17 |
FROM python:3.12-slim
|