diff --git a/Dockerfile b/Dockerfile index 6c861b60..bdf21bc8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 700f1092..2c2b13ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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