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.

Revisions

  1. knapo created this gist Jan 22, 2021.
    36 changes: 36 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    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"]