Spaces:
Sleeping
Sleeping
File size: 555 Bytes
500c1ba baa9d72 500c1ba 1c0f87b 500c1ba baa9d72 500c1ba baa9d72 500c1ba baa9d72 500c1ba baa9d72 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Base image
FROM python:3.10.9
# Set working directory
WORKDIR /app
# Install git and other dependencies
RUN apt-get update && apt-get install -y git
# Copy requirements.txt and install dependencies
RUN mkdir -p /app/.cache/huggingface
# Copy the current directory contents into the container at /app
COPY . /app
# Install requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
# Start the FastAPI app on port 7860, the default port expected by Spaces
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|