aboutsummaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
Diffstat (limited to 'bot')
-rw-r--r--bot/Dockerfile10
-rw-r--r--bot/docker-compose.yaml14
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 @@
1FROM python:3.10
2
3WORKDIR /usr/src/app
4
5COPY requirements.txt ./
6RUN pip install --no-cache-dir -r requirements.txt
7
8COPY . .
9
10CMD [ "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 @@
1version: '3'
2services:
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
13volumes:
14 sqlite3:
Powered by cgit v1.2.3 (git 2.41.0)