Skip to content

Commit

Permalink
improve Dockerfile and fix update reference task
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Jul 23, 2022
1 parent 69a14cf commit 1ed0d7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"test:js": "mocha test/**_test.js",
"lint": "standard lib/**.js test/**.js tasks/**js",
"publish": "node tasks/publish.js",
"test:update-linux-reference": "docker build -f test/Dockerfile -t asciidoctor-web-pdf/test . && docker run --name asciidoctorwebpdftest asciidoctor-web-pdf/test:latest && docker cp asciidoctorwebpdftest:/app/test/output ./test/reference/linux/"
"test:update-linux-reference": "docker build -f test/Dockerfile -t asciidoctor-web-pdf/test . && docker run --name asciidoctorwebpdftest asciidoctor-web-pdf/test:latest; docker cp asciidoctorwebpdftest:/app/test/output/. ./test/reference/linux/ && docker rm asciidoctorwebpdftest"
},
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ RUN apt-get update \
USER asciidoc
WORKDIR /app

COPY --chown=asciidoc:asciidoc package.json package-lock.json ./
RUN npm ci && npm cache clean --force

COPY --chown=asciidoc:asciidoc lib ./lib
COPY --chown=asciidoc:asciidoc bin ./bin
COPY --chown=asciidoc:asciidoc css ./css
COPY --chown=asciidoc:asciidoc fonts ./fonts
COPY --chown=asciidoc:asciidoc test ./test

COPY --chown=asciidoc:asciidoc package.json package-lock.json ./
RUN npm ci

ENV DEBUG=1
CMD npm t

0 comments on commit 1ed0d7e

Please sign in to comment.