Skip to content

Commit

Permalink
Fixed golang error
Browse files Browse the repository at this point in the history
  • Loading branch information
noperse committed Sep 15, 2023
1 parent e7b2d8c commit 95bec2d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 95bec2d

Please sign in to comment.