Browse Source

add Docker example

Gildas 5 years ago
parent
commit
be47e09693
1 changed files with 7 additions and 0 deletions
  1. 7 0
      cli/README.MD

+ 7 - 0
cli/README.MD

@@ -24,6 +24,13 @@ SingleFile can be launched from the command line by running it into a (headless)
 
   `docker run singlefile "https://www.wikipedia.org" > wikipedia.html`
 
+- 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 $(pwd):/usr/src/app/SingleFile/cli/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.
 
 ## Manual installation