Dockerfile 475 B

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