diff options
author | clarkzjw <[email protected]> | 2023-03-01 20:25:46 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-03-01 20:25:46 -0800 |
commit | 721d379b60b1a99a3f0e520ec9b31a6f0e1715a9 (patch) | |
tree | 832c20c2f15fba8e73c0e6de17e99eea48ff19ae | |
parent | 375c0d2544b20124a8cf497819006e01cd217225 (diff) | |
download | photo-721d379b60b1a99a3f0e520ec9b31a6f0e1715a9.tar.gz |
add Dockerfile
-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: | ||