g-clip-inference / Dockerfile
chipling's picture
Create Dockerfile
a278486 verified
FROM python:3.9
WORKDIR /code
# Install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy your code
COPY . .
# Start FastAPI on port 7860 (Hugging Face's default port)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]