We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe7705d commit fb1bf14Copy full SHA for fb1bf14
Dockerfile
@@ -0,0 +1,22 @@
1
+FROM python:3.11-slim
2
+
3
+RUN apt-get update -y \
4
+ && apt-get install -y --no-install-recommends \
5
+ build-essential \
6
+ postgresql-client \
7
+ netcat-openbsd \
8
+ && apt-get clean \
9
+ && rm -rf /var/lib/apt/lists/*
10
11
+RUN pip install --upgrade pip
12
13
+WORKDIR /app
14
15
+COPY requirements.txt .
16
+RUN pip install --no-cache-dir -r requirements.txt
17
18
+COPY . .
19
20
+RUN mkdir -p plans fonts
21
22
+CMD ["python", "bot.py"]
docker-compose.yml
@@ -0,0 +1,11 @@
+version: '3'
+services:
+ bot:
+ build: .
+ volumes:
+ - ./db.json:/app/db.json
+ - ./plans:/app/plans
+ env_file:
+ - .env
+ restart: always
0 commit comments