Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
# Use Node.js base image
|
| 2 |
-
FROM node:
|
| 3 |
|
| 4 |
# Create app directory
|
| 5 |
WORKDIR /usr/src/app
|
| 6 |
|
| 7 |
-
# Update npm globally to
|
| 8 |
RUN npm install -g [email protected]
|
| 9 |
|
| 10 |
# Copy package files
|
|
|
|
| 1 |
+
# Use Node.js 20 base image instead of 16
|
| 2 |
+
FROM node:20-alpine
|
| 3 |
|
| 4 |
# Create app directory
|
| 5 |
WORKDIR /usr/src/app
|
| 6 |
|
| 7 |
+
# Update npm globally to version 11.4.2
|
| 8 |
RUN npm install -g [email protected]
|
| 9 |
|
| 10 |
# Copy package files
|