gmail-agentic / backend /Dockerfile
Kushal14680
Add files via upload
e280b6e unverified
Raw
History Blame Contribute Delete
636 Bytes
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install uv for fast dependency management
RUN pip install uv
# Set work directory
WORKDIR /app
# Copy project files
COPY pyproject.toml requirements.txt uv.lock ./
COPY app ./app
# Install dependencies using uv directly into the system python environment
RUN uv pip install --system -r requirements.txt
# Expose ports
EXPOSE 8000
# Default command runs FastAPI uvicorn
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]