From 9ec7fa00f49f92902252fa6572654af6ca1329af Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 15 Apr 2024 13:28:02 +0000 Subject: [PATCH] Adding Fabric Attempt #1 --- docker/top/Dockerfile | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/docker/top/Dockerfile b/docker/top/Dockerfile index 9c13410..8ca62a5 100644 --- a/docker/top/Dockerfile +++ b/docker/top/Dockerfile @@ -1,5 +1,7 @@ FROM lscr.io/linuxserver/webtop:ubuntu-mate + ENV DEBIAN_FRONTEND=non-interactive + RUN apt-get update && apt-get install -y \ curl \ wget \ @@ -13,9 +15,29 @@ RUN apt-get update && apt-get install -y \ python3 \ python3-pip \ git \ - && rm -rf /var/lib/apt/lists/* \ - && mkdir -p /root/.ssh/ \ + && apt-get install -y pipx \ + && pipx ensurepath \ + && rm -rf /var/lib/apt/lists/* + +RUN mkdir -p /root/.ssh/ \ && chmod 600 /root/.ssh + RUN pip3 install open-interpreter + ENV PATH=$PATH:/usr/local/go/bin:/usr/bin/python3 + RUN bash -c "source <(curl -s https://dowerent:SXcLzR4E9Byvp9AYCFZdEoKHuRup4DrG@codeberg.org/Dowerent/bootstrap-scripts/raw/branch/main/strap-webtop.sh) defaults-bootstrap" + +RUN git clone https://github.com/danielmiessler/fabric.git /opt/fabric \ + && cd /opt/fabric \ + && pipx install . + +ENV PATH=$PATH:/root/.local/bin + +RUN cd /opt/fabric && fabric --setup + +SHELL ["/bin/bash", "-c"] + +RUN fabric --help + +RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*