Change username in Docker Container #159

Merged
Sirherobrine23 merged 1 commits from Bds-Maneger-Core-docker-change-user into main 2021-08-16 11:12:00 +00:00

View File

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