Spaces:
Running
Running
update dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
CHANGED
|
@@ -3,6 +3,19 @@
|
|
| 3 |
FROM node:18
|
| 4 |
USER 1000
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# Set the working directory in the container
|
| 7 |
WORKDIR /usr/src/app
|
| 8 |
|
|
|
|
| 3 |
FROM node:18
|
| 4 |
USER 1000
|
| 5 |
|
| 6 |
+
# We don't need the standalone Chromium
|
| 7 |
+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
| 8 |
+
ENV CHROME_BIN=/usr/bin/google-chrome
|
| 9 |
+
|
| 10 |
+
# Install Google Chrome Stable and fonts
|
| 11 |
+
# Note: this installs the necessary libs to make the browser work with Puppeteer.
|
| 12 |
+
RUN apt-get update && apt-get install curl gnupg -y \
|
| 13 |
+
&& curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
| 14 |
+
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
| 15 |
+
&& apt-get update \
|
| 16 |
+
&& apt-get install google-chrome-stable -y --no-install-recommends \
|
| 17 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
+
|
| 19 |
# Set the working directory in the container
|
| 20 |
WORKDIR /usr/src/app
|
| 21 |
|