promptagrow / Dockerfile
t3k45h1's picture
Create Dockerfile
326e1e4 verified
raw
history blame
504 Bytes
# Use lightweight Python base
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install git and any system dependencies
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy your app code
COPY . .
# Expose the port FastAPI will run on
EXPOSE 7860
# Run FastAPI app via uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]