mirror of
https://github.com/cheveguerra/botGuna.git
synced 2026-04-17 11:26:18 +00:00
24 lines
537 B
Docker
24 lines
537 B
Docker
FROM node:18-alpine as node
|
|
|
|
# Installs latest Chromium (92) package.
|
|
RUN apk add --no-cache \
|
|
chromium \
|
|
nss \
|
|
freetype \
|
|
harfbuzz \
|
|
ca-certificates \
|
|
ttf-freefont \
|
|
nodejs \
|
|
yarn
|
|
|
|
# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
|
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
|
|
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
|
|
|
# Puppeteer v10.0.0 works with Chromium 92.
|
|
COPY . .
|
|
RUN npm install puppeteer@10.0.0
|
|
RUN npm install
|
|
|
|
CMD ["npm", "start"]
|