mirror of
https://github.com/Monadical-SAS/cubbi.git
synced 2025-12-21 04:39:07 +00:00
fix(goose): install latest goose version, do not use pip
This commit is contained in:
@@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
openssh-server \
|
openssh-server \
|
||||||
bash \
|
bash \
|
||||||
curl \
|
curl \
|
||||||
|
bzip2 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Set up SSH server
|
# Set up SSH server
|
||||||
@@ -17,12 +18,15 @@ RUN echo 'root:root' | chpasswd
|
|||||||
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
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
|
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
||||||
|
|
||||||
# Create app directory
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Install python dependencies
|
# Install python dependencies
|
||||||
# This is done before copying scripts for better cache management
|
# This is done before copying scripts for better cache management
|
||||||
RUN pip install --no-cache-dir goose-ai langfuse
|
WORKDIR /tmp
|
||||||
|
RUN curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh -o download_cli.sh && \
|
||||||
|
chmod +x download_cli.sh && \
|
||||||
|
./download_cli.sh
|
||||||
|
|
||||||
|
# Create app directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy initialization scripts
|
# Copy initialization scripts
|
||||||
COPY mc-init.sh /mc-init.sh
|
COPY mc-init.sh /mc-init.sh
|
||||||
@@ -30,10 +34,13 @@ COPY entrypoint.sh /entrypoint.sh
|
|||||||
COPY mc-driver.yaml /mc-driver.yaml
|
COPY mc-driver.yaml /mc-driver.yaml
|
||||||
COPY init-status.sh /init-status.sh
|
COPY init-status.sh /init-status.sh
|
||||||
|
|
||||||
|
# Extend env via bashrc
|
||||||
|
|
||||||
# Make scripts executable
|
# Make scripts executable
|
||||||
RUN chmod +x /mc-init.sh /entrypoint.sh /init-status.sh
|
RUN chmod +x /mc-init.sh /entrypoint.sh /init-status.sh
|
||||||
|
|
||||||
# Set up initialization status check on login
|
# Set up initialization status check on login
|
||||||
|
RUN echo 'export PATH=/root/.local/bin:$PATH' >> /etc/bash.bashrc
|
||||||
RUN echo '[ -x /init-status.sh ] && /init-status.sh' >> /etc/bash.bashrc
|
RUN echo '[ -x /init-status.sh ] && /init-status.sh' >> /etc/bash.bashrc
|
||||||
|
|
||||||
# Set up environment
|
# Set up environment
|
||||||
@@ -44,4 +51,4 @@ ENV PYTHONDONTWRITEBYTECODE=1
|
|||||||
EXPOSE 8000 22
|
EXPOSE 8000 22
|
||||||
|
|
||||||
# Set entrypoint
|
# Set entrypoint
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user