Spaces:
Running
Running
Commit
·
aa55d85
1
Parent(s):
426c756
Try npm install with --ignore-scripts for backend
Browse filesPostinstall scripts might be failing, try skipping them.
Co-Authored-By: Claude <noreply@anthropic.com>
- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@ FROM node:20-slim
|
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
|
| 5 |
-
# Build timestamp: 2026-01-13T00:
|
| 6 |
|
| 7 |
# Minimal test - just check if files exist
|
| 8 |
WORKDIR /app
|
|
@@ -27,10 +27,10 @@ RUN echo "Step 4: esbuild installed"
|
|
| 27 |
RUN npm install --omit=dev
|
| 28 |
RUN echo "Step 5: Root deps installed"
|
| 29 |
|
| 30 |
-
# Install backend deps -
|
| 31 |
RUN echo "Step 6: Starting backend npm install..." && \
|
| 32 |
cd backend && \
|
| 33 |
-
npm install --omit=dev 2>&1 && \
|
| 34 |
echo "Step 6: Backend deps installed successfully" || \
|
| 35 |
(echo "Step 6: Backend npm install FAILED" && exit 1)
|
| 36 |
|
|
|
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
|
| 5 |
+
# Build timestamp: 2026-01-13T00:15
|
| 6 |
|
| 7 |
# Minimal test - just check if files exist
|
| 8 |
WORKDIR /app
|
|
|
|
| 27 |
RUN npm install --omit=dev
|
| 28 |
RUN echo "Step 5: Root deps installed"
|
| 29 |
|
| 30 |
+
# Install backend deps - try with --ignore-scripts
|
| 31 |
RUN echo "Step 6: Starting backend npm install..." && \
|
| 32 |
cd backend && \
|
| 33 |
+
npm install --omit=dev --ignore-scripts 2>&1 && \
|
| 34 |
echo "Step 6: Backend deps installed successfully" || \
|
| 35 |
(echo "Step 6: Backend npm install FAILED" && exit 1)
|
| 36 |
|