mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 06:23:16 +00:00
Dockerfile: build with chrome deb directly instead of copying binaries from chrome image
bump to 0.1.1
This commit is contained in:
parent
7a13535d78
commit
bfa1fc1618
4 changed files with 7 additions and 6 deletions
|
@ -1,2 +1,3 @@
|
|||
output/
|
||||
node_modules/
|
||||
crawls/
|
||||
|
|
|
@ -18,9 +18,10 @@ RUN pip install git+https://github.com/webrecorder/pywb@patch-work
|
|||
|
||||
RUN pip install uwsgi 'gevent>=20.9.0'
|
||||
|
||||
COPY --from=chrome /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/
|
||||
COPY --from=chrome /lib/x86_64-linux-gnu/libdbus* /lib/x86_64-linux-gnu/
|
||||
COPY --from=chrome /opt/google/chrome/ /opt/google/chrome/
|
||||
COPY --from=chrome /tmp/*.deb /deb/
|
||||
COPY --from=chrome /app/libpepflashplayer.so /app/libpepflashplayer.so
|
||||
RUN dpkg -i /deb/*.deb; apt-get update; apt-get install -fqqy && \
|
||||
rm -rf /var/lib/opts/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
@ -33,7 +34,6 @@ ADD uwsgi.ini /app/
|
|||
ADD *.js /app/
|
||||
|
||||
RUN ln -s /app/main.js /usr/bin/crawl
|
||||
RUN ln -s /opt/google/chrome/google-chrome /usr/bin/google-chrome
|
||||
|
||||
WORKDIR /crawls
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ version: '3.5'
|
|||
|
||||
services:
|
||||
crawler:
|
||||
image: webrecorder/browsertrix-crawler:0.1.0
|
||||
image: webrecorder/browsertrix-crawler:0.1.1
|
||||
build:
|
||||
context: ./
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "browsertrix-crawler",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"main": "browsertrix-crawler",
|
||||
"repository": "https://github.com/webrecorder/browsertrix-crawler",
|
||||
"author": "Ilya Kreymer <ikreymer@gmail.com>, Webrecorder Software",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue