DeveloperSA/PlantDiseaseFastAPI
0
1# Use Python 3.11 slim version2FROM python:3.11-slim3 4# Set working directory inside container5WORKDIR /app6 7# Copy requirements and install dependencies8COPY requirements.txt .9RUN pip install --no-cache-dir -r requirements.txt10 11# Copy all files to container12COPY . .13 14# Command to run FastAPI app (shell form to expand ${PORT})15# Final, simple CMD command16CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]