Spaces:
Running
Running
update dockerfile
Browse files- Dockerfile +10 -12
Dockerfile
CHANGED
|
@@ -3,19 +3,17 @@
|
|
| 3 |
FROM node:18
|
| 4 |
USER 1000
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 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 |
|
|
|
|
| 3 |
FROM node:18
|
| 4 |
USER 1000
|
| 5 |
|
| 6 |
+
ENV PUPPETEER_SKIP_DOWNLOAD=True
|
| 7 |
+
RUN apt-get update \
|
| 8 |
+
&& apt-get install -y fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \
|
| 9 |
+
--no-install-recommends \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
+
RUN apt-get update \
|
| 13 |
+
&& apt-get update \
|
| 14 |
+
&& apt-get install -y chromium \
|
| 15 |
+
--no-install-recommends \
|
| 16 |
+
&& rm -rf /var/lib/apt/lists/*;
|
| 17 |
# Set the working directory in the container
|
| 18 |
WORKDIR /usr/src/app
|
| 19 |
|