-
Notifications
You must be signed in to change notification settings - Fork 85
/
Dockerfile
34 lines (29 loc) · 984 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:22.04
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV TZ=Etc/UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install wget python3-dev git python3-venv python3-pip python-is-python3
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
RUN apt-get -y install libxcomposite1 libxfixes3 libxrandr2 libasound2 libmagic1
RUN pip3 install poetry
WORKDIR lookyloo
COPY lookyloo lookyloo/
COPY tools tools/
COPY bin bin/
COPY website website/
COPY config config/
COPY pyproject.toml .
COPY poetry.lock .
COPY README.md .
COPY LICENSE .
RUN mkdir cache user_agents scraped logs
RUN echo LOOKYLOO_HOME="'`pwd`'" > .env
RUN cat .env
RUN poetry install
RUN poetry run playwright install-deps
RUN poetry run playwright install
RUN poetry run tools/3rdparty.py
RUN poetry run tools/generate_sri.py