mirror of https://github.com/CIRCL/lookyloo
fix: Monkey patch docker file, it works.
parent
9ccfcc330f
commit
45c7d61f0e
13
Dockerfile
13
Dockerfile
|
@ -4,18 +4,21 @@ ENV LANG=C.UTF-8
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get -y upgrade
|
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
|
RUN pip3 install pipenv
|
||||||
|
|
||||||
|
WORKDIR root_lookyloo
|
||||||
|
|
||||||
run git clone https://github.com/antirez/redis.git
|
run git clone https://github.com/antirez/redis.git
|
||||||
run cd redis && git checkout 5.0 && make && cd ..
|
run cd redis && git checkout 5.0 && make && cd ..
|
||||||
|
|
||||||
RUN git clone https://github.com/CIRCL/lookyloo.git
|
RUN git clone https://github.com/CIRCL/lookyloo.git
|
||||||
WORKDIR lookyloo
|
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 pipenv install
|
||||||
run echo LOOKYLOO_HOME="'`pwd`'" > .env
|
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
|
run nohup pipenv run run_backend.py --start
|
||||||
|
run nohup pipenv run async_scrape.py
|
||||||
EXPOSE 5200
|
CMD ["pipenv", "run", "start_website.py"]
|
||||||
ENTRYPOINT ["pipenv", "run", "start.py"]
|
EXPOSE 5100
|
||||||
|
|
|
@ -10,5 +10,13 @@ services:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "5100:5100"
|
- "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:
|
#volumes:
|
||||||
# - /path/to/your/data/directory:/lookyloo/scraped
|
# - /path/to/your/data/directory:/lookyloo/scraped
|
||||||
|
|
Loading…
Reference in New Issue