mirror of
https://github.com/Monadical-SAS/cubbi.git
synced 2025-12-22 21:29:06 +00:00
feat(cli): phase 1 - local cli with docker integration
This commit is contained in:
42
drivers/goose/Dockerfile
Normal file
42
drivers/goose/Dockerfile
Normal file
@@ -0,0 +1,42 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
LABEL maintainer="team@monadical.com"
|
||||
LABEL description="Goose with MCP servers"
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
openssh-server \
|
||||
bash \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set up SSH server
|
||||
RUN mkdir /var/run/sshd
|
||||
RUN echo 'root:root' | chpasswd
|
||||
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
||||
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy initialization scripts
|
||||
COPY mai-init.sh /mai-init.sh
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
COPY mai-driver.yaml /mai-driver.yaml
|
||||
|
||||
# Make scripts executable
|
||||
RUN chmod +x /mai-init.sh /entrypoint.sh
|
||||
|
||||
# Install python dependencies
|
||||
RUN pip install --no-cache-dir goose-ai langfuse
|
||||
|
||||
# Set up environment
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 8000 22
|
||||
|
||||
# Set entrypoint
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user