commit 7d9cdb2b2834ae36d6441b4f58035ec8be5d03f1 Author: root Date: Wed Dec 27 09:57:45 2017 +0100 import diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2514e33 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM "ubuntu:17.10" +MAINTAINER "Julien Cabillot " + +ENV DEBIAN_FRONTEND="noninteractive" + +RUN apt-get -qq update && \ + apt-get -qqy install wget python xz-utils xvfb && \ + wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()" && \ + apt-get -qqy remove --purge wget xz-utils && \ + apt-get -qqy autoremove --purge && \ + apt-get -qqy clean all && \ + rm -rf "/usr/share/doc/*" \ + "/var/cache/*" \ + "/var/lib/apt/lists/*" \ + "/usr/src/*" \ + "/var/log/"{apt/*,dpkg.log} \ + "/tmp/*" + +# Add Tini +ENV "TINI_VERSION" "v0.16.1" +ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini" +RUN chmod +x "/tini" +ENTRYPOINT ["/tini", "--"] + +# TODO: à changer +#CMD ["/cipherscan/cipherscan"]