Dockerfile 491 B

123456789101112131415161718192021222324
  1. FROM python:3.13-slim
  2. ENV PYTHONDONTWRITEBYTECODE=1 \
  3. PYTHONUNBUFFERED=1
  4. WORKDIR /app
  5. RUN apt-get update \
  6. && apt-get install -y --no-install-recommends build-essential \
  7. && rm -rf /var/lib/apt/lists/*
  8. COPY requirements.txt ./
  9. RUN pip install --no-cache-dir -r requirements.txt
  10. COPY main.py ./
  11. COPY src ./src
  12. COPY data/ephe ./data/ephe
  13. RUN mkdir -p /app/data/cache /app/logs
  14. EXPOSE 7015
  15. CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7015"]