From 95bec2d46f107b79cf4092f0fe1cd4397fbf04aa Mon Sep 17 00:00:00 2001 From: noperse <53032089+noperse@users.noreply.github.com> Date: Thu, 3 Aug 2023 22:58:07 -0400 Subject: [PATCH] Fixed golang error --- Dockerfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8fa852e95..f52460d27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ ADD . . RUN if [ -z "$(ls plugins/stockpile)" ]; then echo "stockpile plugin not downloaded - please ensure you recursively cloned the caldera git repository and try again."; exit 1; fi RUN apt-get update && \ - apt-get -y install python3 python3-pip git curl + apt-get -y install python3 python3-pip git curl golang-go #WIN_BUILD is used to enable windows build in sandcat plugin ARG WIN_BUILD=false @@ -25,12 +25,6 @@ RUN pip3 install --no-cache-dir -r requirements.txt RUN python3 -c "import app; import app.utility.config_generator; app.utility.config_generator.ensure_local_config();"; \ sed -i '/\- atomic/d' conf/local.yml; -# Install golang -RUN curl -L https://go.dev/dl/go1.17.6.linux-amd64.tar.gz -o go1.17.6.linux-amd64.tar.gz -RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.6.linux-amd64.tar.gz; -ENV PATH="${PATH}:/usr/local/go/bin" -RUN go version; - # Compile default sandcat agent binaries, which will download basic golang dependencies. WORKDIR /usr/src/app/plugins/sandcat