|
@@ -3,10 +3,10 @@ FROM zenika/alpine-chrome:with-node
|
|
|
RUN set -x \
|
|
RUN set -x \
|
|
|
git \
|
|
git \
|
|
|
&& git clone --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile \
|
|
&& 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 \
|
|
&& chmod +x single-file \
|
|
|
&& echo
|
|
&& echo
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
WORKDIR /usr/src/app/SingleFile/cli
|
|
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\"]"]
|