You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
447 B

FROM node:14.2-alpine
MAINTAINER Jørgen Sverre Lien Sellæg <jorgen@guut.org>
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser \
PATH="$PATH:/app"
RUN apk add --no-cache \
chromium \
bash \
nss \
freetype \
freetype-dev \
harfbuzz \
ca-certificates \
ttf-freefont \
&& mkdir /app \
&& chown node:node /app
WORKDIR "/app"
USER node
COPY . /app
RUN yarn
CMD ["scrape"]