Spaces:
Sleeping
Sleeping
File size: 452 Bytes
c46e2fe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
FROM python:3.10-slim
# Set the working directory inside the container
WORKDIR /code
# Copy the requirements file and install them
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy all your project files (main.py, faiss_index, etc.) into the container
COPY . .
# Tell the container to run your app on port 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] |