Spaces:
Sleeping

doc-extract-backend / Dockerfile
Olukayode Adeoye Simeon
Migrated all app files into new repository
3cf7be5
Raw History Blame Contribute Delete
458 Bytes
FROM python:3.14-slim
ENV PYTHONUNBUFFERED=1
COPY ./requirements.txt /tmp/requirements.txt
COPY ./app /app
WORKDIR /app
EXPOSE 7860
RUN python -m venv /env && \
/env/bin/pip install --upgrade pip && \
/env/bin/pip install --no-cache-dir -r /tmp/requirements.txt && \
rm -rf /tmp && \
adduser --disabled-password django-user
ENV PATH="/env/bin/:$PATH"
USER django-user
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]