mirror of
https://github.com/astefanutti/decktape.git
synced 2024-11-29 23:13:11 +03:00
Fix slides directory permissions in Docker image
This commit is contained in:
parent
15c22da121
commit
656704c9c6
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user