23 lines
474 B
Docker
23 lines
474 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install system deps
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY src/ .
|
|
|
|
# Config is mounted at runtime
|
|
VOLUME ["/config"]
|
|
|
|
EXPOSE 8888
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
|
CMD curl -f http://localhost:8888/ || exit 1
|
|
|
|
CMD ["python", "main.py"]
|