Spaces:
Runtime error
Runtime error
File size: 812 Bytes
8f7f7d7 2b8669f f14b058 8f7f7d7 f14b058 8f7f7d7 2b8669f f14b058 8f7f7d7 2b8669f 8f7f7d7 fa4c2a6 2b8669f 8f7f7d7 2b8669f f14b058 2b8669f 6e4f4c9 fa4c2a6 b4084df 2b8669f f14b058 8f7f7d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
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"]
|