crop-guard-backend / Dockerfile
SaiStack's picture
Fixed python version mismatch
439e935
raw
history blame contribute delete
491 Bytes
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# System dependencies (optional, include if needed)
# RUN apt-get update && apt-get install -y libgl1-mesa-glx
# Copy and install requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy entire project
COPY . .
# Expose FastAPI default port
EXPOSE 7860
# Run FastAPI with uvicorn (you can change --host/--port as needed)
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]