docker ready deployment

This commit is contained in:
2026-01-12 18:12:30 +01:00
parent 462f8a688b
commit 67b6410687
13 changed files with 253 additions and 35 deletions

9
discord/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y libpq-dev gcc && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN useradd -m botuser
USER botuser
CMD ["python", "discord_bot.py"]