everycure-ner-pdf / Dockerfile
Luis Chaves
moved things around, cleaned up files, final debug of dokcerfile
70b960d
raw
history blame contribute delete
493 Bytes
FROM python:3.12-slim
# Create application user with home directory
RUN useradd -m appuser
USER appuser
ENV HOME=/home/appuser
ENV PATH="${HOME}/.local/bin:${PATH}"
WORKDIR /code
COPY --chown=appuser:appuser ./pyproject.toml /code/
COPY --chown=appuser:appuser ./README.md /code/
COPY --chown=appuser:appuser ./src /code/src
COPY --chown=appuser:appuser ./openapi.yaml /code/
RUN pip install --no-cache-dir .[all]
CMD ["uvicorn", "everycure.app:app", "--host", "0.0.0.0", "--port", "7860"]