diff options
| author | mo khan <mo.khan@gmail.com> | 2019-09-02 10:46:54 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2019-09-02 10:46:54 -0600 |
| commit | 6fbb0124de839147705bb6d78b42d0862d53660c (patch) | |
| tree | 49e248c0baa3a0394cf486d4b2400e1375048f0f /Dockerfile | |
| parent | 824e860524105c920ff9da6fa8cceab308739452 (diff) | |
allow pdf generation from within alpine image
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,10 +3,11 @@ MAINTAINER mo@mokhan.ca RUN apk update && \ apk upgrade && \ - apk add openjdk8 maven ruby nodejs yarn && \ + apk add openjdk8 maven ruby nodejs yarn chromium nss freetype freetype-dev harfbuzz ca-certificates ttf-freefont && \ gem install bundler:'~> 2.0' --no-document && \ mkdir -p /code WORKDIR /code COPY . /code RUN bundle install --jobs $(nproc) && yarn install && mvn install +RUN sed -i 's/{ headless: true }/{ headless: true, executablePath: "\/usr\/bin\/chromium-browser", args: ["--no-sandbox", "--disable-setuid-sandbox"] }/g' node_modules/mdpdf/src/index.js |
