Spaces:
Runtime error
Runtime error
FROM ubuntu:22.04 | |
# System dependencies | |
RUN apt-get update && apt-get install -y curl sqlite3 python3 python3-pip | |
# Install Ollama | |
RUN curl -fsSL https://ollama.com/install.sh | sh | |
# Copy the requirements file and install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy project files into the container | |
COPY . ./ | |
# Make the demo.launcher script executable | |
RUN chmod +x demo.launcher | |
# Add a non-root user and change ownership of necessary files | |
RUN useradd -ms /bin/bash user && chown -R user:user ./server.py ./client.py ./demo.launcher ./requirements.txt ./demo.db | |
# Switch to the non-root user | |
USER user | |
# Expose the ports (Gradio on 7860, MCP on 8000) | |
EXPOSE 7860 8000 | |
# Start the demo.launcher script to run everything | |
CMD ["./demo.launcher"] | |