gemini-api / Dockerfile
admin08077's picture
Update Dockerfile
e0be08b verified
raw
history blame
622 Bytes
FROM python:3.13.5-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy source code
COPY src/ ./src/
# Set working directory inside container
WORKDIR /app/src
# Expose port for FastAPI
EXPOSE 8501
# Optional healthcheck
HEALTHCHECK CMD curl --fail http://localhost:8501/ || exit 1
# Run FastAPI using uvicorn
ENTRYPOINT ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8501"]