From 60b9e990cfeb32c0781297024f7f8fd1201e815c Mon Sep 17 00:00:00 2001 From: LoveIsGrief Date: Mon, 13 Jan 2020 21:34:50 +0100 Subject: [PATCH] Set a home directory for the "app" user #32 - Docker image --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 20d1f7f8..b49d298c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,10 @@ RUN ./gradlew --no-daemon clean assemble \ WORKDIR /muwire +# Give the app a home otherwise MuWire won't be able to do anything +# especially read configs +RUN usermod --home /muwire app + # Cleanup RUN rm -rf ${TMP_DIR} /root/.gradle /root/.java # Leave only the JRE