Spaces:
Sleeping
Sleeping
File size: 388 Bytes
2bba6de cf1c60f 0cca396 cf1c60f 0cca396 cf1c60f 0cca396 cf1c60f ee4f5ec 0cca396 cf1c60f ee4f5ec | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | FROM python:3.11-slim
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy all the loose files from your root repo straight into the container
COPY . /code/
EXPOSE 7860
# Direct Uvicorn to run main:app from the root directory context
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |