Skip to content

Instantly share code, notes, and snippets.

@YuriFontella
Created August 19, 2019 15:09
Show Gist options
  • Save YuriFontella/06a086f26bda2afeb48bab41b106a5c2 to your computer and use it in GitHub Desktop.
Save YuriFontella/06a086f26bda2afeb48bab41b106a5c2 to your computer and use it in GitHub Desktop.
# Add support for https on wget
RUN apk update && apk add --no-cache wget && apk --no-cache add openssl wget && apk add ca-certificates && update-ca-certificates
# Add phantomjs
RUN wget -qO- "https://github.com/dustinblackman/phantomized/releases/download/2.1.1a/dockerized-phantomjs.tar.gz" | tar xz -C / \
&& npm config set user 0 \
&& npm install -g phantomjs-prebuilt
# Add fonts required by phantomjs to render html correctly
RUN apk add --update ttf-dejavu ttf-droid ttf-freefont ttf-liberation ttf-ubuntu-font-family && rm -rf /var/cache/apk/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment