From 32765dab101bd83902badb514a5bc3990c213d9d Mon Sep 17 00:00:00 2001 From: Guillaume HUSTA Date: Thu, 29 Aug 2024 09:40:32 +0200 Subject: [PATCH] fix: JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals Closes: #18 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index edd3aaf..797b5e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,4 @@ EXPOSE 25 VOLUME ["/var/mail"] # Start the STMP server without a GUI (background) -CMD java -jar /opt/fakeSMTP.jar --background --port 25 --output-dir /var/mail +CMD ["java", "-jar", "/opt/fakeSMTP.jar", "--background", "--port", "25", "--output-dir", "/var/mail"]