1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 08:48:54 +00:00

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
This commit is contained in:
Artur Propp 2023-03-08 14:01:25 +01:00 committed by PlantUML
parent 99f85c0c9b
commit 1245b15e01

View File

@ -41,3 +41,5 @@ USER root
RUN chgrp -R 0 $JETTY_BASE && chmod -R g=u $JETTY_BASE RUN chgrp -R 0 $JETTY_BASE && chmod -R g=u $JETTY_BASE
RUN chgrp -R 0 /tmp && chmod -R g=u /tmp RUN chgrp -R 0 /tmp && chmod -R g=u /tmp
USER jetty USER jetty
VOLUME ["/tmp/jetty"]