Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -1,11 +1,12 @@
|
|
| 1 |
# Use Node 20 (Bullseye is more compatible than Slim for some build tools)
|
| 2 |
-
FROM node:20-
|
| 3 |
|
| 4 |
# Install git and pnpm
|
| 5 |
-
RUN
|
| 6 |
npm install -g pnpm && \
|
|
|
|
| 7 |
rm -rf /var/lib/apt/lists/*
|
| 8 |
-
|
| 9 |
# Set working directory
|
| 10 |
WORKDIR /app
|
| 11 |
|
|
|
|
| 1 |
# Use Node 20 (Bullseye is more compatible than Slim for some build tools)
|
| 2 |
+
FROM node:20-slim
|
| 3 |
|
| 4 |
# Install git and pnpm
|
| 5 |
+
RUN apt-get update && apt-get install -y git && \
|
| 6 |
npm install -g pnpm && \
|
| 7 |
+
apt-get clean && \
|
| 8 |
rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
# Set working directory
|
| 11 |
WORKDIR /app
|
| 12 |
|