You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
763 B
Docker
34 lines
763 B
Docker
FROM python:3.9-slim
|
|
|
|
# Install system dependencies including Tesseract OCR
|
|
RUN apt-get update && apt-get install -y \
|
|
tesseract-ocr \
|
|
libgl1-mesa-glx \
|
|
libglib2.0-0 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy requirements first for better caching
|
|
COPY requirements.txt .
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application code
|
|
COPY . .
|
|
|
|
# Create storage directories for FHIR resources
|
|
RUN mkdir -p fhir_storage/Patient fhir_storage/Observation
|
|
|
|
# Set environment variables
|
|
ENV PYTHONPATH=/app
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV ENVIRONMENT=development
|
|
|
|
# Expose port
|
|
EXPOSE 8000
|
|
|
|
# Run application
|
|
CMD ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "8000"] |