diff --git a/sandboxes/dynamicanalysis/Dockerfile b/sandboxes/dynamicanalysis/Dockerfile index 1fbb55ee..bf97d14c 100644 --- a/sandboxes/dynamicanalysis/Dockerfile +++ b/sandboxes/dynamicanalysis/Dockerfile @@ -16,12 +16,14 @@ ENV DEBIAN_FRONTEND noninteractive # Silence 'debconf: delaying package configuation, since apt-utils is not installed' warning # as it related to interactive configuration anyway ENV DEBCONF_NOWARNINGS="yes" +# Define the version of Kubernetes to use. +ENV K8S_VERSION="v1.29" # Define the major version of Node.js to use. ENV NODE_MAJOR=18 # setup repo for kubectl -RUN curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/kubernetes-archive-keyring.gpg && \ - echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list +RUN curl -fsSL "https://pkgs.k8s.io/core:/stable:/${K8S_VERSION}/deb/Release.key" | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg && \ + echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/${K8S_VERSION}/deb/ /" > /etc/apt/sources.list.d/kubernetes.list # install repo for nodejs RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/nodesource.gpg && \