Spaces:
Running
Running
FROM python:3.9 | |
ENV PATH="/home/user/.local/bin:$PATH" | |
WORKDIR /code | |
COPY . /code | |
RUN pip install --upgrade pip | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY --chown=user ./requirements.txt requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
EXPOSE 7860 | |
CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "7860"] |