From 1245b15e015fdd44077fc2717a9910c07c77421a Mon Sep 17 00:00:00 2001 From: Artur Propp Date: Wed, 8 Mar 2023 14:01:25 +0100 Subject: [PATCH] Add explicit VOLUME instruction for jetty image Set a mount point for read-only root file system configurations. Without the explicit mount point definition in the image, we were facing issues on Amazon ECS, because the directory got mounted with different ownership (root) and mode (0755). For reference please see also: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/bind-mounts.html#bind-mount-considerations --- Dockerfile.jetty | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile.jetty b/Dockerfile.jetty index 380eaa5..9c5272b 100644 --- a/Dockerfile.jetty +++ b/Dockerfile.jetty @@ -41,3 +41,5 @@ USER root RUN chgrp -R 0 $JETTY_BASE && chmod -R g=u $JETTY_BASE RUN chgrp -R 0 /tmp && chmod -R g=u /tmp USER jetty + +VOLUME ["/tmp/jetty"]