diff --git a/docker/Dockerfile b/docker/Dockerfile index 9b9c9c2..afe2dc6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,7 @@ # Stage 1: Build the Go agent binary FROM debian:stable-slim AS builder -RUN apt update && apt install -y protobuf-compiler git wget build-essential +RUN apt-get update && apt-get upgrade -y && apt-get install -y protobuf-compiler git wget build-essential ENV GOLANG_VERSION=1.26.1 RUN wget -q "https://dl.google.com/go/go${GOLANG_VERSION}.linux-$(dpkg --print-architecture).tar.gz" -O /tmp/go.tar.gz \ @@ -22,13 +22,13 @@ FROM debian:stable-slim WORKDIR /agent # Install dependencies -RUN apt update && apt install -y protobuf-compiler git python3 python3-venv wget build-essential openssl jq +RUN apt-get update && apt-get upgrade -y && apt-get install -y protobuf-compiler git python3 python3-venv wget build-essential openssl jq # Install NodeJS and Snyk Broker ENV NODE_VERSION=20 ARG SNYK_BROKER_VERSION=v1.0.7-axon -RUN wget -q -O - https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && apt install -y nodejs +RUN wget -q -O - https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && apt-get install -y nodejs RUN npm install --global npm@latest typescript@4.9.3 RUN git clone https://github.com/cortexapps/snyk-broker.git /tmp/snyk-broker && \ cd /tmp/snyk-broker && \