Spaces:
Running
Running
fix puppeteer
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -11,18 +11,18 @@ COPY --chown=1000 package.json package-lock.json ./
|
|
| 11 |
|
| 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 |
# Copy the rest of the application files to the container
|
| 22 |
COPY --chown=1000 . .
|
| 23 |
-
RUN
|
| 24 |
-
chromium \
|
| 25 |
-
RUN chmod +x entrypoint.sh
|
| 26 |
|
| 27 |
# Expose the application port (assuming your app runs on port 3000)
|
| 28 |
EXPOSE 3000
|
|
|
|
| 11 |
|
| 12 |
# Install dependencies
|
| 13 |
RUN npm install
|
| 14 |
+
RUN apt-get update && apt-get install -y \
|
| 15 |
+
chromium \
|
| 16 |
|
| 17 |
+
# Set the environment variable for Puppeteer's download path.
|
| 18 |
+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
| 19 |
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
|
| 20 |
ENV PUPPETEER_DOWNLOAD_PATH=/root/.cache/puppeteer
|
| 21 |
ENV PUPPETEER_CACHE_DIR=/root/.cache/puppeteer
|
| 22 |
|
| 23 |
# Copy the rest of the application files to the container
|
| 24 |
COPY --chown=1000 . .
|
| 25 |
+
RUN chmod +x entrypoint.sh
|
|
|
|
|
|
|
| 26 |
|
| 27 |
# Expose the application port (assuming your app runs on port 3000)
|
| 28 |
EXPOSE 3000
|