2016-02-19 20:19:29 +03:00
|
|
|
FROM debian:8.3
|
2015-11-13 06:53:55 +03:00
|
|
|
|
2016-09-20 18:37:58 +03:00
|
|
|
ENV TERM xterm-color
|
|
|
|
|
2016-07-17 19:13:27 +03:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2015-11-15 22:29:34 +03:00
|
|
|
curl \
|
2016-09-22 22:58:28 +03:00
|
|
|
libfontconfig
|
2015-11-13 06:53:55 +03:00
|
|
|
|
2015-11-14 00:08:41 +03:00
|
|
|
WORKDIR /decktape
|
2015-11-15 22:29:34 +03:00
|
|
|
|
2015-11-22 21:02:45 +03:00
|
|
|
# Copy each directory individually as Docker Hub does not take .dockerignore into account for the moment
|
|
|
|
# COPY . .
|
|
|
|
COPY libs libs/
|
|
|
|
COPY plugins plugins/
|
2015-11-23 00:50:47 +03:00
|
|
|
COPY decktape.js ./
|
2016-02-19 20:33:53 +03:00
|
|
|
COPY phantomjs.json ./
|
2015-11-22 21:02:45 +03:00
|
|
|
|
2015-11-15 22:29:34 +03:00
|
|
|
RUN mkdir bin
|
|
|
|
|
2016-09-21 17:21:13 +03:00
|
|
|
RUN curl -kf \
|
2016-09-22 22:58:28 +03:00
|
|
|
-L https://github.com/astefanutti/decktape/releases/download/v1.0.0/phantomjs-linux-x86-64 \
|
2015-11-13 06:53:55 +03:00
|
|
|
-o bin/phantomjs
|
2015-11-14 00:08:41 +03:00
|
|
|
|
|
|
|
RUN chmod +x bin/phantomjs
|
|
|
|
|
2016-08-23 16:30:02 +03:00
|
|
|
WORKDIR /slides
|
|
|
|
|
|
|
|
ENTRYPOINT ["/decktape/bin/phantomjs", "/decktape/decktape.js"]
|
2015-11-22 21:06:53 +03:00
|
|
|
CMD ["-h"]
|