Skip to content

Instantly share code, notes, and snippets.

@knapo
Created January 22, 2021 07:14
Show Gist options
  • Save knapo/3c146ff45da43822edabd6f46bfd3f39 to your computer and use it in GitHub Desktop.
Save knapo/3c146ff45da43822edabd6f46bfd3f39 to your computer and use it in GitHub Desktop.
ruby + unoconv + puppeteer on alpine Dockerfile
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