Commit 6fbb012
Changed files (3)
.dockerignore
@@ -5,3 +5,4 @@ node_modules
*.pdf
pkg
*.class
+Dockerfile
.gitlab-ci.yml
@@ -33,7 +33,6 @@ tarball:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
stage: release
script:
- - yarn install
- bundle exec rake publish
artifacts:
paths:
Dockerfile
@@ -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