Files

22 lines
511 B
Docker
Raw Permalink Normal View History

2026-03-25 22:03:39 +01:00
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
2026-03-30 07:59:11 +02:00
ca-certificates curl \
2026-03-25 22:03:39 +01:00
&& rm -rf /var/lib/apt/lists/*
2026-03-30 07:59:11 +02:00
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
2026-03-25 22:03:39 +01:00
2026-03-30 07:59:11 +02:00
COPY . /app
2026-03-25 22:03:39 +01:00
RUN mkdir -p /app/data
EXPOSE 8000
2026-03-30 07:59:11 +02:00
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD curl -f http://localhost:8000/health || exit 1
2026-03-25 22:03:39 +01:00
CMD ["python", "-m", "uvicorn", "backend_main:app", "--host", "0.0.0.0", "--port", "8000"]