meta / Dockerfile
RaghuNandan09's picture
Upload 10 files
66f64c1 verified
Raw
History Blame Contribute Delete
777 Bytes
# ---- Base Image ----
FROM python:3.11-slim
# ---- Set working directory ----
WORKDIR /app
# ---- Install system dependencies ----
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# ---- Copy files ----
COPY . .
# ---- Install Python dependencies ----
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir \
fastapi \
uvicorn[standard] \
pydantic \
requests \
google-generativeai \
openenv-core
# ---- Expose port ----
EXPOSE 8000
# ---- Environment variables (optional defaults) ----
ENV PYTHONUNBUFFERED=1
# ---- Start server (point to root `app:app`) ----
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]