enzostvs HF staff commited on
Commit
37a5c70
β€’
1 Parent(s): ea4df62

add metadata auto generated on first load of the model

Browse files
Files changed (2) hide show
  1. Dockerfile +10 -0
  2. entrypoint.sh +0 -1
Dockerfile CHANGED
@@ -12,6 +12,16 @@ COPY --chown=1000 package.json package-lock.json ./
12
  # Install dependencies
13
  RUN npm install
14
 
 
 
 
 
 
 
 
 
 
 
15
  # Copy the rest of the application files to the container
16
  COPY --chown=1000 . .
17
  RUN chmod +x entrypoint.sh
 
12
  # Install dependencies
13
  RUN npm install
14
 
15
+ # Set the environment variable for Puppeteer's download path.
16
+ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
17
+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
18
+ ENV PUPPETEER_DOWNLOAD_PATH=/root/.cache/puppeteer
19
+ ENV PUPPETEER_CACHE_DIR=/root/.cache/puppeteer
20
+
21
+ # Install Chromium and fonts
22
+ RUN apk add --update chromium \
23
+ ttf-freefont
24
+
25
  # Copy the rest of the application files to the container
26
  COPY --chown=1000 . .
27
  RUN chmod +x entrypoint.sh
entrypoint.sh CHANGED
@@ -4,5 +4,4 @@ npm run build &&
4
  npx prisma generate &&
5
  npx prisma migrate deploy &&
6
  npx prisma db push &&
7
- npx puppeteer browsers install chrome &&
8
  node server.js
 
4
  npx prisma generate &&
5
  npx prisma migrate deploy &&
6
  npx prisma db push &&
 
7
  node server.js