Browse Source

set --output-directory to "out"

Gildas 5 năm trước cách đây
mục cha
commit
0cbe37c3d6
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      cli/Dockerfile

+ 3 - 3
cli/Dockerfile

@@ -3,10 +3,10 @@ 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 \
+    && cd SingleFile && npm install --production && cd cli && mkdir out && 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\"]"]
+ENTRYPOINT ["./single-file", "--browser-executable-path", "/usr/bin/chromium-browser", "--dump-content", "--output-directory", "out", "--browser-args", "[\"--no-sandbox\"]"]