mirror of https://github.com/CIRCL/lookyloo
Merge 30c0700119
into 32ba719d5c
commit
2b9863ca87
|
@ -0,0 +1,20 @@
|
|||
FROM debian:stretch
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get -y upgrade
|
||||
RUN apt-get -y install git wget python3-pip pwgen
|
||||
RUN git clone https://github.com/CIRCL/lookyloo.git
|
||||
WORKDIR lookyloo
|
||||
|
||||
RUN pip3 install -r requirements.txt
|
||||
RUN pip3 install -e .
|
||||
RUN wget https://d3js.org/d3.v4.min.js -O lookyloo/static/d3.v4.min.js
|
||||
RUN wget https://cdn.rawgit.com/eligrey/FileSaver.js/5733e40e5af936eb3f48554cf6a8a7075d71d18a/FileSaver.js -O lookyloo/static/FileSaver.js
|
||||
|
||||
RUN sed -i "s/SPLASH = 'http:\/\/127.0.0.1:8050'/SPLASH = 'http:\/\/splash:8050'/g" lookyloo/__init__.py
|
||||
RUN secret_key=`pwgen -Bsv1 32`; sed -i "s/app.secret_key = 'changeme'/app.secret_key = '$secret_key'/g" lookyloo/__init__.py
|
||||
ENV LC_ALL=C.UTF-8
|
||||
ENV LANG=C.UTF-8
|
||||
ENV FLASK_APP=lookyloo
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT ["flask", "run", "--host=0.0.0.0"]
|
|
@ -0,0 +1,12 @@
|
|||
version: '3'
|
||||
services:
|
||||
splash:
|
||||
image: "scrapinghub/splash"
|
||||
expose:
|
||||
- "8050"
|
||||
- "5023"
|
||||
command: --disable-ui --disable-lua
|
||||
lookyloo:
|
||||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
|
@ -2,6 +2,7 @@
|
|||
flask
|
||||
flask-bootstrap
|
||||
ete3
|
||||
bs4
|
||||
|
||||
# Backend libs
|
||||
git+https://github.com/viper-framework/har2tree.git
|
||||
|
|
Loading…
Reference in New Issue