diff options
Diffstat (limited to 'bot')
-rw-r--r-- | bot/Dockerfile | 10 | ||||
-rw-r--r-- | bot/docker-compose.yaml | 14 |
2 files changed, 24 insertions, 0 deletions
diff --git a/bot/Dockerfile b/bot/Dockerfile new file mode 100644 index 0000000..6e97ed6 --- /dev/null +++ b/bot/Dockerfile | |||
@@ -0,0 +1,10 @@ | |||
1 | FROM python:3.10 | ||
2 | |||
3 | WORKDIR /usr/src/app | ||
4 | |||
5 | COPY requirements.txt ./ | ||
6 | RUN pip install --no-cache-dir -r requirements.txt | ||
7 | |||
8 | COPY . . | ||
9 | |||
10 | CMD [ "python", "./bot.py" ] | ||
diff --git a/bot/docker-compose.yaml b/bot/docker-compose.yaml new file mode 100644 index 0000000..66726c2 --- /dev/null +++ b/bot/docker-compose.yaml | |||
@@ -0,0 +1,14 @@ | |||
1 | version: '3' | ||
2 | services: | ||
3 | checkinbot: | ||
4 | build: | ||
5 | context: . | ||
6 | dockerfile: Dockerfile | ||
7 | restart: always | ||
8 | env_file: | ||
9 | - .env | ||
10 | volumes: | ||
11 | - sqlite3:/usr/src/app/database/ | ||
12 | |||
13 | volumes: | ||
14 | sqlite3: | ||