mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 10:03:40 +01:00
Add dockerfile
This commit is contained in:
parent
2b9a8d34ce
commit
e6436d28fa
1 changed files with 30 additions and 0 deletions
30
Dockerfile
Normal file
30
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue