Gildas %!s(int64=5) %!d(string=hai) anos
pai
achega
cb30f25efb
Modificáronse 1 ficheiros con 3 adicións e 7 borrados
  1. 3 7
      cli/Dockerfile

+ 3 - 7
cli/Dockerfile

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