Skip to content

Commit

Permalink
Fixed Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Aledangelo committed Apr 28, 2023
1 parent d6b33f3 commit d75d3f7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ RUN if [ "$WIN_BUILD" = "true" ] ; then apt-get -y install mingw-w64; fi
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt

# Set up config file and disable atomic by default
COPY conf/default.yml .
RUN grep -v "\- atomic" conf/default.yml > 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;
Expand All @@ -32,6 +28,9 @@ RUN go version;
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

# Set up config file and disable atomic by default
RUN grep -v "\- atomic" conf/default.yml > conf/local.yml

# Compile default sandcat agent binaries, which will download basic golang dependencies.
WORKDIR /usr/src/app/plugins/sandcat

Expand Down

0 comments on commit d75d3f7

Please sign in to comment.