discord-bot/fail2ban/Dockerfile

18 lines
335 B
Text
Raw Permalink Normal View History

FROM python:3.14.2-slim
2025-12-16 11:44:25 +09:00
WORKDIR /app
# fail2ban-client 설치
RUN apt-get update && apt-get install -y --no-install-recommends \
fail2ban \
&& rm -rf /var/lib/apt/lists/*
# 의존성 설치
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 소스 복사
COPY main.py .
CMD ["python", "main.py"]