lida / Dockerfile
zenhamdi
feat: HF Spaces config + Google Gemini support
448a539 unverified
# Use an official Python runtime as a parent image
FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /app
# Copy project source into the container
COPY . .
# Install from local source (includes Gemini support and other local changes)
RUN pip install --no-cache-dir .
# Expose the port that the application will listen on
EXPOSE 8080
# Set GOOGLE_API_KEY for Gemini (free: aistudio.google.com) or OPENAI_API_KEY for OpenAI
CMD ["lida", "ui", "--host", "0.0.0.0", "--port", "8080", "--docs"]