|
|
|
|
|
FROM python:3.11-slim |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
curl \ |
|
build-essential \ |
|
poppler-utils \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
COPY requirements.txt . |
|
|
|
|
|
RUN pip install --no-cache-dir --upgrade pip && \ |
|
pip install --no-cache-dir -r requirements.txt |
|
|
|
|
|
COPY src/ ./src/ |
|
COPY static/ ./static/ |
|
COPY app.py . |
|
COPY frontend_ui.py . |
|
COPY database.py . |
|
COPY fhirflame_logo.svg . |
|
COPY fhirflame_logo_450x150.svg . |
|
COPY index.html . |
|
|
|
|
|
COPY .env* ./ |
|
|
|
|
|
RUN mkdir -p logs test_results |
|
|
|
|
|
ENV PYTHONPATH=/app |
|
|
|
|
|
EXPOSE 7860 8000 |
|
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ |
|
CMD curl -f http://localhost:7860 || curl -f http://localhost:8000/health || exit 1 |
|
|
|
|
|
CMD ["python", "app.py"] |