mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
Merge pull request #156 from raman325/master
Fix double-download of Chromium binary and backwards symlink in Dockerfile
This commit is contained in:
commit
4a7f1d57d5
1 changed files with 6 additions and 1 deletions
|
@ -30,6 +30,11 @@ RUN apt-get update && apt-get install -y wget --no-install-recommends \
|
||||||
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 /usr/local/bin/dumb-init
|
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 /usr/local/bin/dumb-init
|
||||||
RUN chmod +x /usr/local/bin/dumb-init
|
RUN chmod +x /usr/local/bin/dumb-init
|
||||||
|
|
||||||
|
# Uncomment to skip the chromium download when installing puppeteer. If you do,
|
||||||
|
# you'll need to launch puppeteer with:
|
||||||
|
# browser.launch({executablePath: 'google-chrome-unstable'})
|
||||||
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
||||||
|
|
||||||
# Install puppeteer so it's available in the container.
|
# Install puppeteer so it's available in the container.
|
||||||
RUN npm i puppeteer
|
RUN npm i puppeteer
|
||||||
|
|
||||||
|
@ -45,7 +50,7 @@ RUN git clone https://github.com/pirate/ArchiveBox /home/pptruser/app \
|
||||||
&& chown -R pptruser:pptruser /data \
|
&& chown -R pptruser:pptruser /data \
|
||||||
&& ln -s /data /home/pptruser/app/archivebox/output \
|
&& ln -s /data /home/pptruser/app/archivebox/output \
|
||||||
&& ln -s /home/pptruser/app/bin/* /bin/ \
|
&& ln -s /home/pptruser/app/bin/* /bin/ \
|
||||||
&& ln -s /home/pptruser/app/bin/archive /bin/archivebox \
|
&& ln -s /home/pptruser/app/bin/archivebox /bin/archive \
|
||||||
&& chown -R pptruser:pptruser /home/pptruser/app/archivebox
|
&& chown -R pptruser:pptruser /home/pptruser/app/archivebox
|
||||||
# && pip3 install -r /home/pptruser/app/archivebox/requirements.txt
|
# && pip3 install -r /home/pptruser/app/archivebox/requirements.txt
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue