FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY comprehend-medical-redaction-text.py . COPY app.py . RUN useradd -m -u 1000 user USER user # PORT is set by App Runner at runtime; 7860 is the Gradio default for local runs ENV PORT=7860 EXPOSE 7860 CMD ["python", "-u", "app.py"]