From 721d379b60b1a99a3f0e520ec9b31a6f0e1715a9 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 1 Mar 2023 20:25:46 -0800 Subject: add Dockerfile --- bot/Dockerfile | 10 ++++++++++ bot/docker-compose.yaml | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 bot/Dockerfile create mode 100644 bot/docker-compose.yaml diff --git a/bot/Dockerfile b/bot/Dockerfile new file mode 100644 index 0000000..6e97ed6 --- /dev/null +++ b/bot/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3.10 + +WORKDIR /usr/src/app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +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 @@ +version: '3' +services: + checkinbot: + build: + context: . + dockerfile: Dockerfile + restart: always + env_file: + - .env + volumes: + - sqlite3:/usr/src/app/database/ + +volumes: + sqlite3: -- cgit v1.2.3