Add Docker
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -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" ]
|
||||
7
docker-compose.yaml
Normal file
7
docker-compose.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
services:
|
||||
tgkanboardbot:
|
||||
build: .
|
||||
container_name: tgkanboardbot
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
Reference in New Issue
Block a user