diff options
| author | mo khan <mo@mokhan.ca> | 2019-09-03 18:49:17 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2019-09-03 18:49:17 -0600 |
| commit | a67ef9c7d53548cd5bea9196eb7e754f893990db (patch) | |
| tree | 9f620b7f086d470591572848f4c8044881586005 /Dockerfile | |
| parent | 221dba40184c3ba31efb3ed9fd467035886f9e5c (diff) | |
build pipeline
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8113b4c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine:latest +MAINTAINER mo@mokhan.ca + +RUN apk update && \ + apk upgrade && \ + apk add 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 +CMD ["bundle", "exec", "rake", "test"] |
