2015-11-15 22:27:53 +03:00
|
|
|
FROM debian:8
|
2015-11-13 06:53:55 +03:00
|
|
|
|
|
|
|
RUN apt-get update
|
2015-11-15 22:29:34 +03:00
|
|
|
|
|
|
|
RUN apt-get install -y \
|
|
|
|
curl \
|
|
|
|
libwebp5 \
|
|
|
|
libfontconfig \
|
|
|
|
libjpeg62 \
|
|
|
|
libssl1.0.0 \
|
|
|
|
libicu52
|
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 ./
|
2015-11-22 21:02:45 +03:00
|
|
|
|
2015-11-15 22:29:34 +03:00
|
|
|
RUN mkdir bin
|
|
|
|
|
2015-11-13 06:53:55 +03:00
|
|
|
RUN curl \
|
|
|
|
-L https://astefanutti.github.io/decktape/downloads/phantomjs-linux-debian8-x86-64 \
|
|
|
|
-o bin/phantomjs
|
2015-11-14 00:08:41 +03:00
|
|
|
|
|
|
|
RUN chmod +x bin/phantomjs
|
|
|
|
|
|
|
|
ENTRYPOINT ["/decktape/bin/phantomjs", "decktape.js"]
|
2015-11-22 21:06:53 +03:00
|
|
|
CMD ["-h"]
|