Просмотр исходного кода

move out directory into the root directory

Gildas 5 лет назад
Родитель
Сommit
dbb70d75ab
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      cli/Dockerfile
  2. 2 2
      cli/README.MD

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

+ 2 - 2
cli/README.MD

@@ -26,9 +26,9 @@ SingleFile can be launched from the command line by running it into a (headless)
 
 - Run and mount a volume to get the saved file in the current directory
 
-  `docker run -v %cd%:/usr/src/app/SingleFile/cli/out singlefilez "https://www.wikipedia.org"` (Windows)
+  `docker run -v %cd%:/out singlefilez "https://www.wikipedia.org"` (Windows)
 
-  `docker run -v $(pwd):/usr/src/app/SingleFile/cli/out singlefilez "https://www.wikipedia.org"` (Linux/UNIX)
+  `docker run -v $(pwd):/out singlefilez "https://www.wikipedia.org"` (Linux/UNIX)
 
 
 - An alternative docker file can be found here https://github.com/screenbreak/SingleFile-dockerized. It allows you to save pages from the command line interface or through an HTTP server.