Spaces:
Build error
Build error
File size: 362 Bytes
a23cfdb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
# Set working directory
WORKDIR /app
# Copy requirements and install them
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app (including app.py and templates folder)
COPY . .
EXPOSE 7860
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|