Skip to content

Commit f09eea2

Browse files
authored
build: docker
1 parent 3320c14 commit f09eea2

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:3.12-slim
2+
3+
COPY . /
4+
5+
RUN pip install --no-cache-dir discord.py pymongo dotenv
6+
7+
CMD [ "python", "-u", "main.py" ]

docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
services:
2+
luabot:
3+
build: .
4+
container_name: luabot_container
5+
restart: always
6+
env_file:
7+
- .env
8+
depends_on:
9+
- mongodb
10+
11+
mongodb:
12+
image: mongo:latest
13+
container_name: luabot_db
14+
restart: always
15+
volumes:
16+
- luabot_data:/data/db
17+
18+
volumes: luabot_data

0 commit comments

Comments
 (0)