From 54cce5024d05aa14021da5cc6d2991c6a38528ca Mon Sep 17 00:00:00 2001 From: Matheus Sampaio Queiroga Date: Mon, 16 Aug 2021 08:01:02 -0300 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9b34fed..d50cee7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,26 +12,20 @@ RUN bash /tmp/Configure.sh # Setup bdsmaneger/core FROM bdsbase AS bdscore -RUN mkdir -vp /home/thebds/bds_core && chmod -Rv 7777 /home; chown thebds:thebds -Rv /home - - # Create Volume to Storage Server And Config -VOLUME [ "/home/thebds/bds_core" ] +VOLUME [ "/root/bds_core" ] # Copy Bds Maneger Core -WORKDIR /home/backend_core_scripts/ +WORKDIR /opt/backend_core_scripts/ # Install Core dependencies -COPY --chown=thebds:thebds package*.json ./ +COPY package*.json ./ RUN npm install # Copy BdsManger Core -COPY --chown=thebds:thebds ./ ./ +COPY ./ ./ RUN chmod a+x -v bin/* -# Set Non Root User -USER thebds - # Set default ENVs to Bds Core ENV PLAYERS="5" \ WORLD_NAME="The Ultimate Server" \ -- 2.50.0