fix: Monkey patch docker file, it works.

pull/27/head
Raphaël Vinot 2019-02-05 17:32:19 +01:00
parent 9ccfcc330f
commit 45c7d61f0e
2 changed files with 16 additions and 5 deletions

View File

@ -4,18 +4,21 @@ ENV LANG=C.UTF-8
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install git wget python3-pip pwgen
RUN apt-get -y install git wget python3-pip
RUN pip3 install pipenv
WORKDIR root_lookyloo
run git clone https://github.com/antirez/redis.git
run cd redis && git checkout 5.0 && make && cd ..
RUN git clone https://github.com/CIRCL/lookyloo.git
WORKDIR lookyloo
RUN sed -i "s/str='http:\/\/127.0.0.1:8050'/str='http:\/\/splash:8050'/g" lookyloo/lookyloo.py
RUN pipenv install
run echo LOOKYLOO_HOME="'`pwd`'" > .env
RUN sed -i "s/SPLASH = 'http:\/\/127.0.0.1:8050'/SPLASH = 'http:\/\/splash:8050'/g" lookyloo/__init__.py
EXPOSE 5200
ENTRYPOINT ["pipenv", "run", "start.py"]
run nohup pipenv run run_backend.py --start
run nohup pipenv run async_scrape.py
CMD ["pipenv", "run", "start_website.py"]
EXPOSE 5100

View File

@ -10,5 +10,13 @@ services:
build: .
ports:
- "5100:5100"
tty: true
command:
- /bin/sh
- -c
- |
pipenv run run_backend.py --start
pipenv run async_scrape.py &
pipenv run start_website.py
#volumes:
# - /path/to/your/data/directory:/lookyloo/scraped