aiapp / Dockerfile
abdullahalioo's picture
Update Dockerfile
b9c41b6 verified
raw
history blame
388 Bytes
FROM python:3.10
# Set working directory inside container
WORKDIR /app
# Copy requirements first (for faster build cache)
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire project into container
COPY . .
# Run FastAPI with uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]