From ae1a586122695bdf434010944d88c71bf451e66c Mon Sep 17 00:00:00 2001 From: Danamir Date: Sun, 3 Aug 2025 11:27:11 +0300 Subject: [PATCH] Add Docker --- Dockerfile | 15 +++++++++++++++ docker-compose.yaml | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aebef6f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.11-slim + +WORKDIR /app + +RUN apt update +RUN apt install -y +RUN rm -rf /var/lib/apt/lists/* + +COPY requirements.txt ./ +COPY main.py ./ +COPY .env ./ + +RUN pip install -r requirements.txt + +CMD [ "python", "main.py" ] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..c533dd2 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,7 @@ +services: + tgkanboardbot: + build: . + container_name: tgkanboardbot + restart: unless-stopped + env_file: + - .env \ No newline at end of file