2018-05-02 14:21:55 +02:00
|
|
|
FROM ubuntu:bionic
|
2019-01-23 15:13:29 +01:00
|
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
ENV LANG=C.UTF-8
|
2018-03-16 11:05:42 +01:00
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y upgrade
|
|
|
|
RUN apt-get -y install git wget python3-pip pwgen
|
2019-01-23 15:13:29 +01:00
|
|
|
RUN pip3 install pipenv
|
|
|
|
|
2018-03-16 11:05:42 +01:00
|
|
|
RUN git clone https://github.com/CIRCL/lookyloo.git
|
|
|
|
WORKDIR lookyloo
|
2019-01-23 15:13:29 +01:00
|
|
|
RUN pipenv install
|
|
|
|
run echo LOOKYLOO_HOME="'`pwd`'" > .env
|
|
|
|
run echo FLASK_APP="'`pwd`/lookyloo'" >> .env
|
2018-03-16 11:05:42 +01:00
|
|
|
|
|
|
|
RUN sed -i "s/SPLASH = 'http:\/\/127.0.0.1:8050'/SPLASH = 'http:\/\/splash:8050'/g" lookyloo/__init__.py
|
2019-01-23 15:13:29 +01:00
|
|
|
|
2018-03-16 11:05:42 +01:00
|
|
|
EXPOSE 5000
|
2019-01-23 15:13:29 +01:00
|
|
|
ENTRYPOINT ["pipenv", "run", "start_website.py"]
|