-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.object
51 lines (43 loc) · 1.31 KB
/
Dockerfile.object
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app/object
COPY requirements.txt /app/object/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# # Установка PostgreSQL и утилиты pg_dump и еще разной мути..
RUN apt-get update && apt-get install -y apt-utils \
postgresql \
postgresql-contrib \
postgresql-client \
wget \
gnupg2 \
unzip \
libxss1 \
libappindicator3-1 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libx11-xcb1 \
fonts-liberation \
xdg-utils \
libx11-dev \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxi6 \
libxtst6 \
libnss3 \
libcups2 \
libxrandr2 \
libatk1.0-0 \
libgtk-3-0 \
curl
RUN echo "deb http://deb.debian.org/debian/ bookworm main" >> /etc/apt/sources.list && \
apt-get update && \
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
apt-get update && \
apt-get install -y google-chrome-stable && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY . .
# Указываем команду запуска приложения
CMD ["python", "app/parser_object.py"]