Change username in Docker Container #159
14
Dockerfile
14
Dockerfile
@ -12,26 +12,20 @@ RUN bash /tmp/Configure.sh
|
|||||||
# Setup bdsmaneger/core
|
# Setup bdsmaneger/core
|
||||||
FROM bdsbase AS bdscore
|
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
|
# Create Volume to Storage Server And Config
|
||||||
VOLUME [ "/home/thebds/bds_core" ]
|
VOLUME [ "/root/bds_core" ]
|
||||||
|
|
||||||
# Copy Bds Maneger Core
|
# Copy Bds Maneger Core
|
||||||
WORKDIR /home/backend_core_scripts/
|
WORKDIR /opt/backend_core_scripts/
|
||||||
|
|
||||||
# Install Core dependencies
|
# Install Core dependencies
|
||||||
COPY --chown=thebds:thebds package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copy BdsManger Core
|
# Copy BdsManger Core
|
||||||
COPY --chown=thebds:thebds ./ ./
|
COPY ./ ./
|
||||||
RUN chmod a+x -v bin/*
|
RUN chmod a+x -v bin/*
|
||||||
|
|
||||||
# Set Non Root User
|
|
||||||
USER thebds
|
|
||||||
|
|
||||||
# Set default ENVs to Bds Core
|
# Set default ENVs to Bds Core
|
||||||
ENV PLAYERS="5" \
|
ENV PLAYERS="5" \
|
||||||
WORLD_NAME="The Ultimate Server" \
|
WORLD_NAME="The Ultimate Server" \
|
||||||
|
Reference in New Issue
Block a user