17 lines
335 B
Docker
17 lines
335 B
Docker
FROM python:3.14.2-slim
|
|
|
|
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"]
|