19 lines
347 B
Docker
19 lines
347 B
Docker
FROM python:3.14-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
# Runtime state lives in the working directory: state.json, storage/, logs/
|
|
VOLUME ["/app/storage", "/app/logs"]
|
|
|
|
EXPOSE 65334/tcp 28149/udp
|
|
|
|
CMD ["python", "main.py"]
|