Spaces:
Running
Running
update dockerfile
Browse files- Dockerfile +4 -13
Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# Dockerfile
|
| 2 |
# Use an official Node.js runtime as the base image
|
| 3 |
-
FROM node:
|
| 4 |
USER 1000
|
| 5 |
|
| 6 |
# Set the working directory in the container
|
|
@@ -12,18 +12,9 @@ COPY --chown=1000 package.json package-lock.json ./
|
|
| 12 |
# Install dependencies
|
| 13 |
RUN npm install
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
# Install Google Chrome Stable and fonts
|
| 20 |
-
# Note: this installs the necessary libs to make the browser work with Puppeteer.
|
| 21 |
-
RUN apt-get update && apt-get install curl gnupg -y \
|
| 22 |
-
&& curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
| 23 |
-
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
| 24 |
-
&& apt-get update \
|
| 25 |
-
&& apt-get install google-chrome-stable -y --no-install-recommends \
|
| 26 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 27 |
|
| 28 |
# Copy the rest of the application files to the container
|
| 29 |
COPY --chown=1000 . .
|
|
|
|
| 1 |
# Dockerfile
|
| 2 |
# Use an official Node.js runtime as the base image
|
| 3 |
+
FROM node:20-alpine
|
| 4 |
USER 1000
|
| 5 |
|
| 6 |
# Set the working directory in the container
|
|
|
|
| 12 |
# Install dependencies
|
| 13 |
RUN npm install
|
| 14 |
|
| 15 |
+
RUN apk add build-base gcompat udev chromium
|
| 16 |
+
|
| 17 |
+
RUN apk add --no-cache ffmpeg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# Copy the rest of the application files to the container
|
| 20 |
COPY --chown=1000 . .
|