Gildas il y a 5 ans
Parent
commit
68b4b43e72
1 fichiers modifiés avec 13 ajouts et 0 suppressions
  1. 13 0
      cli/Dockerfile

+ 13 - 0
cli/Dockerfile

@@ -0,0 +1,13 @@
+FROM zenika/alpine-chrome:with-node
+
+RUN set -x \
+    git \
+    && git clone --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile \
+    && cd SingleFile && npm install --production && cd cli && npm install --production \
+    && chmod +x single-file \
+    && echo
+    
+WORKDIR /usr/src/app/SingleFile/cli
+
+ENTRYPOINT ["./single-file", "--browser-executable-path", "/usr/bin/chromium-browser", "--dump-content", "--browser-args", "[\"--no-sandbox\"]"]
+CMD ["https://github.com/Zenika/alpine-chrome"]