diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..43e1829 --- /dev/null +++ b/Dockerfile @@ -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"]