2020-07-07 01:00:59 +02:00
|
|
|
FROM ubuntu:focal
|
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
|
2021-08-24 18:50:05 +02:00
|
|
|
RUN apt-get -y install wget python3-dev git python3-venv python3-pip python-is-python3
|
2022-04-25 15:48:07 +02:00
|
|
|
RUN apt-get -y install libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libxkbcommon0 libxdamage1 libgbm1 libpango-1.0-0 libcairo2 libatspi2.0-0
|
2020-01-21 17:39:18 +01:00
|
|
|
RUN pip3 install poetry
|
2019-01-23 15:13:29 +01:00
|
|
|
|
2018-03-16 11:05:42 +01:00
|
|
|
WORKDIR lookyloo
|
|
|
|
|
2019-11-02 05:05:08 +01:00
|
|
|
COPY lookyloo lookyloo/
|
2021-07-27 08:09:21 +02:00
|
|
|
COPY tools tools/
|
2019-11-02 05:05:08 +01:00
|
|
|
COPY bin bin/
|
|
|
|
COPY website website/
|
|
|
|
COPY setup.py .
|
2020-01-21 17:39:18 +01:00
|
|
|
COPY pyproject.toml .
|
|
|
|
COPY poetry.lock .
|
2020-02-10 11:42:09 +01:00
|
|
|
COPY README.md .
|
2019-11-02 05:05:08 +01:00
|
|
|
|
|
|
|
RUN mkdir cache user_agents scraped
|
|
|
|
|
|
|
|
RUN echo LOOKYLOO_HOME="'`pwd`'" > .env
|
2022-04-25 15:48:07 +02:00
|
|
|
RUN cp config/generic.json.sample config/generic.json
|
|
|
|
RUN cp config/modules.json.sample config/modules.json
|
|
|
|
RUN poetry install
|
|
|
|
RUN poetry run playwright install
|
|
|
|
RUN poetry run tools/validate_config_files.py --check
|
|
|
|
RUN poetry run tools/validate_config_files.py --update
|
2021-08-24 18:50:05 +02:00
|
|
|
RUN poetry run tools/3rdparty.py
|
2022-04-08 14:18:58 +02:00
|
|
|
RUN poetry run tools/generate_sri.py
|