aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-03-01 20:25:46 -0800
committerclarkzjw <[email protected]>2023-03-01 20:25:46 -0800
commit721d379b60b1a99a3f0e520ec9b31a6f0e1715a9 (patch)
tree832c20c2f15fba8e73c0e6de17e99eea48ff19ae
parent375c0d2544b20124a8cf497819006e01cd217225 (diff)
downloadphoto-721d379b60b1a99a3f0e520ec9b31a6f0e1715a9.tar.gz
add Dockerfile
-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)