Set a home directory for the "app" user

#32 - Docker image
This commit is contained in:
2020-01-13 21:34:50 +01:00
parent 28ad0ae30f
commit 60b9e990cf

View File

@ -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