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.
 
 

25 lines
485 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
RUN apk add --no-cache \
chromium \
bash \
imagemagick \
graphicsmagick \
nss \
freetype \
freetype-dev \
harfbuzz \
ca-certificates \
ttf-freefont \
&& mkdir /app \
&& chown node:node /app
WORKDIR "/app"
USER node
COPY --chown=node:node ./scrape.sh /scrape.sh
CMD ["/scrape.sh"]