mirror of https://github.com/01-edu/public.git
23 lines
488 B
Docker
23 lines
488 B
Docker
FROM docker.01-edu.org/alpine:3.17.0
|
|
|
|
# Installs latest Chromium 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
|
|
|
|
RUN yarn add puppeteer@15.3.2
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|