From 8ac6dc5ccab70d2156bbc699f2949f58d070a1e9 Mon Sep 17 00:00:00 2001 From: PauloASilva Date: Thu, 4 Jul 2024 10:55:28 +0100 Subject: [PATCH 1/2] fix(docker): deprecated MAINTAINER instruction --- VMs/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VMs/Dockerfile b/VMs/Dockerfile index a2faa9a6cd..bbc2c22761 100644 --- a/VMs/Dockerfile +++ b/VMs/Dockerfile @@ -1,6 +1,6 @@ # This dockerfile builds a container that pulls down and runs the latest version of BenchmarkJava FROM ubuntu:latest -MAINTAINER "Dave Wichers dave.wichers@owasp.org" +LABEL org.opencontainers.image.authors="Dave Wichers dave.wichers@owasp.org" RUN apt-get update RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata From 63b11d625793134110c482f0a68f2b8368594b58 Mon Sep 17 00:00:00 2001 From: PauloASilva Date: Thu, 4 Jul 2024 10:56:35 +0100 Subject: [PATCH 2/2] fix(docker): legacy "ENV key value" format --- VMs/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VMs/Dockerfile b/VMs/Dockerfile index bbc2c22761..4ee0191ec0 100644 --- a/VMs/Dockerfile +++ b/VMs/Dockerfile @@ -35,7 +35,7 @@ RUN useradd -d /home/bench -m -s /bin/bash bench RUN echo bench:bench | chpasswd RUN chown -R bench /owasp/ -ENV PATH /owasp/BenchmarkJava:$PATH +ENV PATH=/owasp/BenchmarkJava:$PATH # start up Benchmark once, for 60 seconds, then kill it, so the additional dependencies required to run it are downloaded/cached in the image as well. # exit 0 is required to return a 'success' code, otherwise the timeout returns a failure code, causing the Docker build to fail.