Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add metadata auto generated on first load of the model
Browse files- Dockerfile +10 -0
- 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
|