lelafav502 commited on
Commit
902787d
Β·
verified Β·
1 Parent(s): b55c84b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
- # Use the official Node.js image as a base image
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