Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Use
|
2 |
-
FROM node:20
|
3 |
|
4 |
# Install necessary libraries and dependencies for Puppeteer
|
5 |
RUN apt-get update && apt-get install -y \
|
@@ -20,6 +20,9 @@ RUN apt-get update && apt-get install -y \
|
|
20 |
libdbus-1-3 \
|
21 |
&& rm -rf /var/lib/apt/lists/*
|
22 |
|
|
|
|
|
|
|
23 |
# Install Puppeteer
|
24 |
RUN npm install puppeteer
|
25 |
|
|
|
1 |
+
# Use a more recent Node.js image
|
2 |
+
FROM node:20-slim
|
3 |
|
4 |
# Install necessary libraries and dependencies for Puppeteer
|
5 |
RUN apt-get update && apt-get install -y \
|
|
|
20 |
libdbus-1-3 \
|
21 |
&& rm -rf /var/lib/apt/lists/*
|
22 |
|
23 |
+
# Clean npm cache
|
24 |
+
RUN npm cache clean --force
|
25 |
+
|
26 |
# Install Puppeteer
|
27 |
RUN npm install puppeteer
|
28 |
|