Files
Excommunicado/Dockerfile
T
2026-06-09 06:50:38 -04:00

25 lines
538 B
Docker

# Dockerfile for Excommunicado Discord Bot
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Copy requirements first (better layer caching)
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Create data directory for persistence
RUN mkdir -p /app/data
# Create non-root user for security
RUN useradd -m botuser && chown -R botuser:botuser /app
USER botuser
# Run the bot
CMD ["python", "bot.py"]