Mohammed Foud
commited on
Commit
·
d7f80c2
1
Parent(s):
5c28d37
first commit
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -4,13 +4,13 @@ FROM node:latest
|
|
4 |
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
5 |
|
6 |
# Install Google Chrome Stable and fonts
|
7 |
-
# Note: this installs the necessary libs to make the browser work with Puppeteer.
|
8 |
RUN apt-get update && apt-get install curl gnupg -y \
|
9 |
&& curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
10 |
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
11 |
&& apt-get update \
|
12 |
&& apt-get install google-chrome-stable -y --no-install-recommends \
|
13 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
14 |
WORKDIR /app
|
15 |
|
16 |
RUN npm install -g pnpm
|
@@ -21,6 +21,9 @@ RUN pnpm install --frozen-lockfile
|
|
21 |
|
22 |
COPY . .
|
23 |
|
|
|
|
|
|
|
24 |
EXPOSE 7860
|
25 |
|
26 |
CMD ["node", "app.js"]
|
|
|
4 |
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
5 |
|
6 |
# Install Google Chrome Stable and fonts
|
|
|
7 |
RUN apt-get update && apt-get install curl gnupg -y \
|
8 |
&& curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
9 |
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
10 |
&& apt-get update \
|
11 |
&& apt-get install google-chrome-stable -y --no-install-recommends \
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
+
|
14 |
WORKDIR /app
|
15 |
|
16 |
RUN npm install -g pnpm
|
|
|
21 |
|
22 |
COPY . .
|
23 |
|
24 |
+
# Set permissions for the /app directory
|
25 |
+
RUN chmod -R 777 /app
|
26 |
+
|
27 |
EXPOSE 7860
|
28 |
|
29 |
CMD ["node", "app.js"]
|