Spaces:
Sleeping
Sleeping
Fix: Docker build failing on NPM deps (Using fresh init)
Browse files
services/processor/Dockerfile
CHANGED
|
@@ -19,11 +19,11 @@ RUN dpkg --add-architecture i386 && \
|
|
| 19 |
# Set up app directory
|
| 20 |
WORKDIR /app
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
# Install
|
| 26 |
-
RUN npm install express multer @types/express @types/multer
|
| 27 |
|
| 28 |
# Copy App Source
|
| 29 |
COPY . .
|
|
|
|
| 19 |
# Set up app directory
|
| 20 |
WORKDIR /app
|
| 21 |
|
| 22 |
+
# Initialize minimal Node environment (No massive frontend deps)
|
| 23 |
+
RUN npm init -y
|
| 24 |
+
|
| 25 |
+
# Install ONLY what we need
|
| 26 |
+
RUN npm install express multer @types/express @types/multer typescript tsx
|
| 27 |
|
| 28 |
# Copy App Source
|
| 29 |
COPY . .
|