Files
chat/docker/Dockerfile.simple
T
Hanzo Dev cb1bf0e258 feat: Add GitHub Actions workflow for Docker builds
- Add docker-publish.yml workflow for ghcr.io
- Add production-ready Dockerfile (if missing)
- Enable automated builds on push to main
- Support for semantic versioning tags
2025-07-23 23:06:15 -05:00

30 lines
629 B
Docker

FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
python3-dev \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create directories
RUN mkdir -p /app/logs /app/data
# Environment
ENV LITELLM_MASTER_KEY=${LITELLM_MASTER_KEY}
ENV DATABASE_URL=${DATABASE_URL}
ENV REDIS_URL=${REDIS_URL}
EXPOSE 4000
# Run LiteLLM proxy
CMD ["litellm", "--config", "/app/config.yaml", "--port", "4000", "--num_workers", "1"]