2023-01-19 12:31:12 +00:00
|
|
|
FROM python:3.11-bullseye
|
|
|
|
|
|
|
|
COPY config.py /
|
|
|
|
|
2023-03-16 22:45:04 +00:00
|
|
|
RUN apt-get update
|
2023-01-19 12:31:12 +00:00
|
|
|
|
2023-03-16 22:45:04 +00:00
|
|
|
RUN apt-get install software-properties-common apt-transport-https wget ca-certificates -y
|
2023-01-19 12:31:12 +00:00
|
|
|
|
|
|
|
RUN wget -O- https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | tee /usr/share/keyrings/google-chrome.gpg
|
|
|
|
|
|
|
|
RUN echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list
|
|
|
|
|
2023-03-16 22:45:04 +00:00
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
RUN apt-get install -y \
|
2023-01-19 12:31:12 +00:00
|
|
|
build-essential \
|
|
|
|
libpq-dev \
|
|
|
|
python3-dev \
|
|
|
|
python3-pip \
|
|
|
|
python3-setuptools \
|
|
|
|
python3-wheel \
|
|
|
|
python3-venv \
|
|
|
|
firefox-esr \
|
2023-03-16 22:45:04 +00:00
|
|
|
google-chrome-stable \
|
|
|
|
espeak
|
2023-01-19 12:31:12 +00:00
|
|
|
|
|
|
|
COPY requirements.txt /
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
COPY . /
|
|
|
|
|
2023-02-23 23:05:50 +00:00
|
|
|
CMD ["python3", "main.py"]
|