Skip to content

Add Dockerfile #16

@ChenZiHong-Gavin

Description

@ChenZiHong-Gavin
# Use Python 3.10 as base image since it's specified in the pylint workflow
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

# Copy project files
COPY . .

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Create necessary directories as specified in generate.py
RUN mkdir -p cache/data/graphgen cache/logs

# Set environment variables (these will need to be provided at runtime)
ENV SYNTHESIZER_MODEL=""
ENV SYNTHESIZER_BASE_URL=""
ENV SYNTHESIZER_API_KEY=""
ENV TRAINEE_MODEL=""
ENV TRAINEE_BASE_URL=""
ENV TRAINEE_API_KEY=""

# Default command to run the web interface
CMD ["python", "webui/app.py"]

# Expose the default Gradio port
EXPOSE 7860

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions