chore: add Dockerfile and compose.yml

This commit is contained in:
Arthur K. 2025-05-21 15:04:06 +03:00
parent 486e58d3f4
commit 07c609de87
Signed by: wzray
GPG key ID: B97F30FDC4636357
4 changed files with 25 additions and 0 deletions

2
.env.sample Normal file
View file

@ -0,0 +1,2 @@
TOKEN=
MAIN_GROUP_ID=

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.env

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM python:3.12-bookworm
STOPSIGNAL SIGINT
WORKDIR /app
# make ru_RU.UTF-8 locale available
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install \
--no-install-recommends -y locales && rm -r /var/lib/apt/lists/* && \
printf "en_US.UTF-8 UTF-8\nru_RU.UTF-8 UTF-8" >/etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY main.py .
CMD ["python3", "-u", "main.py"]

7
compose.yml Normal file
View file

@ -0,0 +1,7 @@
services:
deadline_bot:
build: .
env_file: .env
volumes:
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped