-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (31 loc) · 798 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (31 loc) · 798 Bytes
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
35
36
FROM python:3.11-slim
LABEL org.opencontainers.image.source=https://github.com/Duff89/parser_avito
RUN apt-get update && apt-get install \
-y --ignore-missing --no-install-recommends --no-install-suggests \
libatk-bridge2.0-0t64 \
libatk1.0-0t64 \
libatspi2.0-0t64 \
libcairo2 \
libdbus-1-3 \
libdrm2 \
libgbm1 \
libglib2.0-0t64 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libxcomposite1 \
libxdamage1 \
libxfixes3 \
libxrandr2 \
libxkbcommon0 \
libasound2 \
&& apt-get autopurge \
&& apt-get clean \
&& apt-get distclean
COPY requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install --upgrade pip && pip install -r requirements.txt
RUN python -m playwright install chromium-headless-shell
COPY . /app
COPY entrypoint.sh /
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]