zpSearchFastAPI / Dockerfile
FaridaYasserEl-Lahamy's picture
Update Dockerfile
a339d73 verified
raw
history blame contribute delete
302 Bytes
FROM python:3.12
RUN useradd -m -u 1000 user
WORKDIR /code
USER root
RUN chown -R user:user /code
USER user
RUN pip install uvicorn
RUN pip show uvicorn
COPY --chown=user:user . /code
ENV PATH="/home/user/.local/bin:${PATH}"
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]