chore: add Dockerfile and compose.yml
This commit is contained in:
parent
486e58d3f4
commit
07c609de87
4 changed files with 25 additions and 0 deletions
2
.env.sample
Normal file
2
.env.sample
Normal file
|
@ -0,0 +1,2 @@
|
|||
TOKEN=
|
||||
MAIN_GROUP_ID=
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.env
|
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
7
compose.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
services:
|
||||
deadline_bot:
|
||||
build: .
|
||||
env_file: .env
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
restart: unless-stopped
|
Loading…
Add table
Add a link
Reference in a new issue