diff --git a/Dockerfile b/Dockerfile index b98b2f559488664fb024860694f01e83aeb87f5e..b9bca92298a6e1930b1fd2d313a233c7aee06f79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,8 @@ ARG vcsref="" LABEL org.label-schema.vcs-ref=${vcsref} +WORKDIR / + # Default environment variables # The Java Options are Aikar's flags to optimize a few things, among them garbage collection: # https://aikar.co/2018/07/02/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft/ @@ -45,9 +47,7 @@ RUN chmod 0644 /etc/cron.d/backup # Add papermc user and group, then change ownership of /papermc and /backup to this user RUN groupadd -g ${GUID} ${papermc_group} RUN useradd -g ${GUID} -l -M -s /bin/false -u ${GUID} ${papermc_user} -RUN chown -R ${papermc_user}:${papermc_group} /papermc/ -RUN chown -R ${papermc_user}:${papermc_group} /backup/ -RUN chown -R ${papermc_user}:${papermc_group} /web/ +RUN chown -R ${GUID} /papermc /backup /web # Get package lists, install needed packages, then remove the package lists again (to save space) # "webp" is needed to generate images with better compression for the dynamic map (optional, needs further configuration in dynmap-plugin´s config file)