mirror of
https://github.com/astefanutti/decktape.git
synced 2024-12-12 13:49:13 +03:00
Merge branch 'oupala-patch-1'
This commit is contained in:
commit
18d1e1537f
@ -26,5 +26,7 @@ RUN curl -k \
|
||||
|
||||
RUN chmod +x bin/phantomjs
|
||||
|
||||
ENTRYPOINT ["/decktape/bin/phantomjs", "decktape.js"]
|
||||
WORKDIR /slides
|
||||
|
||||
ENTRYPOINT ["/decktape/bin/phantomjs", "/decktape/decktape.js"]
|
||||
CMD ["-h"]
|
||||
|
@ -263,15 +263,15 @@ For example:
|
||||
|
||||
* To convert an online HTML presentation and have it exported into the working directory under the `slides.pdf` filename:
|
||||
[source,shell,subs=attributes+]
|
||||
$ docker run --rm -v `pwd`:/pwd astefanutti/decktape {uri-revealjs} /pwd/slides.pdf
|
||||
$ docker run --rm -v `pwd`:/slides astefanutti/decktape {uri-revealjs} slides.pdf
|
||||
|
||||
* Or, to convert an HTML presentation that's stored on the local file system in the `home` directory:
|
||||
[source,shell]
|
||||
$ docker run --rm -v `pwd`:/pwd -v ~:/home astefanutti/decktape /home/slides.html /pwd/slides.pdf
|
||||
$ docker run --rm -v `pwd`:/slides -v ~:/home/user astefanutti/decktape /home/user/slides.html slides.pdf
|
||||
|
||||
* Or, to convert an HTML presentation that's deployed on the local host:
|
||||
[source,shell]
|
||||
$ docker run --rm --net=host -v `pwd`:/pwd astefanutti/decktape http://localhost:8000 /pwd/slides.pdf
|
||||
$ docker run --rm --net=host -v `pwd`:/slides astefanutti/decktape http://localhost:8000 slides.pdf
|
||||
|
||||
It is recommended to use the following options from the {uri-docker-ref}/run[`docker run`] command:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user