Fix slides directory permissions in Docker image

This commit is contained in:
Antonin Stefanutti 2017-09-04 12:13:53 +02:00
parent 15c22da121
commit 656704c9c6
2 changed files with 5 additions and 6 deletions

View File

@ -20,6 +20,10 @@ COPY decktape.js ./
RUN chown -R node:node /decktape
# https://github.com/moby/moby/issues/20295
RUN mkdir /slides
RUN chown -R node:node /slides
USER node
RUN npm install

View File

@ -266,16 +266,11 @@ Alternatively, you can use the {uri-docker-ref}/commandline/cp[`docker cp`] comm
# Run docker run without the --rm option
$ docker run astefanutti/decktape {uri-revealjs} slides.pdf
# Copy the exported PDF from the latest used container to the local file system
$ docker cp `docker ps -lq`:decktape/slides.pdf .
$ docker cp `docker ps -lq`:slides/slides.pdf .
# Finally remove the latest used container
$ docker rm `docker ps -lq`
----
Finally, if you want to execute DeckTape using a local clone of the DeckTape repository in order to take your changes into account, you can run:
[source,shell]
$ docker run --rm -v `pwd`:`pwd` -w `pwd` astefanutti/decktape slides.html slides.pdf
== Plugin API
{icon-edit}