mirror of
https://github.com/astefanutti/decktape.git
synced 2024-11-09 18:09:14 +03:00
f913091b60
Set the working directory to /slides so that the PDF file does not need to be prefixed by using this convention.
33 lines
660 B
Docker
33 lines
660 B
Docker
FROM debian:8.3
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
curl \
|
|
libwebp5 \
|
|
libfontconfig \
|
|
libjpeg62 \
|
|
libssl1.0.0 \
|
|
libicu52
|
|
|
|
WORKDIR /decktape
|
|
|
|
# Copy each directory individually as Docker Hub does not take .dockerignore into account for the moment
|
|
# COPY . .
|
|
COPY libs libs/
|
|
COPY plugins plugins/
|
|
COPY decktape.js ./
|
|
COPY phantomjs.json ./
|
|
|
|
RUN mkdir bin
|
|
|
|
RUN curl -k \
|
|
-L http://astefanutti.github.io/decktape/downloads/phantomjs-linux-debian8-x86-64 \
|
|
-o bin/phantomjs
|
|
|
|
RUN chmod +x bin/phantomjs
|
|
|
|
WORKDIR /slides
|
|
|
|
ENTRYPOINT ["/decktape/bin/phantomjs", "/decktape/decktape.js"]
|
|
CMD ["-h"]
|