diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ddd1623 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.13-slim + +ENV PYTHONUNBUFFERED=1 + +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD ["python", "main.py"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..42e698c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +services: + discord-bot-fembot: + build: . + container_name: discord_bot_fembot + restart: always + env_file: + - .env + volumes: + - .:/bot + - bot_data:/bot/FemBot.db + +volumes: + bot_data: \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..571e5aa --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +discord.py +aiosqlite +geopy +python-dotenv \ No newline at end of file