Friday / Dockerfile
thedeba's picture
Upload 3 files
11e76a2 verified
raw
history blame contribute delete
328 Bytes
FROM python:3.11-slim
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Copy app
COPY app.py .
# Expose the port FastAPI runs on
EXPOSE 7860
# Start FastAPI with uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]