Add dockerfile

This commit is contained in:
nex 2023-01-19 12:31:12 +00:00
parent 2b9a8d34ce
commit e6436d28fa

30
Dockerfile Normal file
View file

@ -0,0 +1,30 @@
FROM python:3.11-bullseye
COPY config.py /
RUN apt update
RUN apt install software-properties-common apt-transport-https wget ca-certificates -y
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
RUN apt update && apt install -y \
build-essential \
libpq-dev \
python3-dev \
python3-pip \
python3-setuptools \
python3-wheel \
python3-venv \
firefox-esr \
google-chrome-stable
COPY requirements.txt /
RUN pip install -r requirements.txt
COPY . /
CMD ["python", "main.py"]