Spaces:
Running
Running
File size: 503 Bytes
bfe88a9 dd00186 bfe88a9 ed41019 bfe88a9 ed41019 bfe88a9 ed41019 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Use an official Python runtime as a parent image
FROM python:3.12-slim
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY ./app /code/app
# Copy static files and templates
COPY ./static /code/static
COPY ./templates /code/templates
EXPOSE 7860
# Command to run the FastAPI application
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |