Created
January 22, 2021 07:14
-
-
Save knapo/3c146ff45da43822edabd6f46bfd3f39 to your computer and use it in GitHub Desktop.
ruby + unoconv + puppeteer on alpine Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.7-alpine as base | |
ENV APP_HOME /home/app | |
ENV GROVER_NO_SANDBOX true | |
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true | |
WORKDIR $APP_HOME | |
COPY package.json $APP_HOME/ | |
RUN apk update \ | |
&& apk add --update --no-cache \ | |
chromium \ | |
curl \ | |
g++ \ | |
gcc \ | |
imagemagick \ | |
libreoffice \ | |
libxml2-dev \ | |
libxslt-dev \ | |
linux-headers \ | |
make \ | |
nodejs \ | |
npm \ | |
py3-pip \ | |
ttf-freefont \ | |
udev \ | |
&& rm -rf /var/cache/apk/* \ | |
&& pip install unoconv \ | |
&& unoconv --version \ | |
&& node --version \ | |
&& npm version | |
RUN npm install | |
CMD ["/bin/sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment