From e3e26733363418210eed0152b51096b64793004e Mon Sep 17 00:00:00 2001
From: TheBroTMv2 <tobias-mueller@outlook.de>
Date: Thu, 11 Mar 2021 15:04:09 +0100
Subject: [PATCH] Update Dockerfile

---
 Dockerfile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index b98b2f5..b9bca92 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)
-- 
GitLab