dockerfile

This commit is contained in:
2023-01-15 20:45:23 -06:00
parent 55012a9d88
commit 7591feb598

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM node:18-alpine as node
WORKDIR /app
# 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"]