college-bot-v1/Dockerfile

31 lines
690 B
Docker
Raw Normal View History

2023-01-19 12:31:12 +00:00
FROM python:3.11-bullseye
COPY config.py /
2023-03-20 15:33:56 +00:00
RUN wget -O- https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /usr/share/keyrings/google-chrome.gpg
2023-01-19 12:31:12 +00:00
2023-03-20 15:33:56 +00:00
RUN echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/google-chrome.list
2023-01-19 12:31:12 +00:00
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 \
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 /
2023-03-20 15:33:56 +00:00
RUN pip install -U pip wheel setuptools
2023-01-19 12:31:12 +00:00
RUN pip install -r requirements.txt
2023-03-20 15:33:56 +00:00
COPY ../ /
2023-01-19 12:31:12 +00:00
2023-03-20 15:33:56 +00:00
CMD ["main.py"]