Update Dockerfile
Browse files- Dockerfile +1 -20
Dockerfile
CHANGED
|
@@ -4,27 +4,8 @@ FROM node:18
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Install required dependencies (including Chromium for Playwright)
|
| 8 |
-
RUN apt-get update && apt-get install -y \
|
| 9 |
-
wget \
|
| 10 |
-
libnss3 \
|
| 11 |
-
libatk1.0-0 \
|
| 12 |
-
libpangocairo-1.0-0 \
|
| 13 |
-
libx11-xcb1 \
|
| 14 |
-
libxcomposite1 \
|
| 15 |
-
libxcursor1 \
|
| 16 |
-
libxdamage1 \
|
| 17 |
-
libxfixes3 \
|
| 18 |
-
libxi6 \
|
| 19 |
-
libxrandr2 \
|
| 20 |
-
libgbm1 \
|
| 21 |
-
libasound2 \
|
| 22 |
-
libpango-1.0-0 \
|
| 23 |
-
libatk-bridge2.0-0 \
|
| 24 |
-
libgtk-3-0
|
| 25 |
-
|
| 26 |
# Install Node.js dependencies
|
| 27 |
-
RUN npm install express axios cheerio
|
| 28 |
|
| 29 |
# Set Puppeteer to use Playwright's Chromium
|
| 30 |
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
|
|
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Install Node.js dependencies
|
| 8 |
+
RUN npm install express axios cheerio cors
|
| 9 |
|
| 10 |
# Set Puppeteer to use Playwright's Chromium
|
| 11 |
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
|