Browse Source

optimise

pull/5/head
Daniel Gibbs 3 years ago
parent
commit
fc377311f5
No known key found for this signature in database GPG Key ID: 4D812BAB6228BBA6
  1. 23
      Dockerfile

23
Dockerfile

@ -50,25 +50,28 @@ RUN echo "**** Install Base LinuxGSM Requirements ****" \
iproute2 \
iputils-ping \
nano \
vim
vim \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
&& rm -rf /var/tmp/*
# Install NodeJS
RUN echo "**** Install NodeJS ****" \
&& curl -sL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get update && apt-get install -y nodejs
# Install GameDig https://docs.linuxgsm.com/requirements/gamedig
RUN echo "**** Install GameDig ****" \
&& npm install -g gamedig
# Install Cleanup
RUN echo "**** Cleanup ****" \
&& apt-get update \
&& apt-get install -y nodejs \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
&& rm -rf /var/tmp/*
# Install GameDig https://docs.linuxgsm.com/requirements/gamedig
RUN echo "**** Install GameDig ****" \
&& npm install -g gamedig
##Need use xterm for LinuxGSM##
ENV DEBIAN_FRONTEND noninteractive
@ -79,7 +82,7 @@ ARG USER_GID=$USER_UID
## Add linuxgsm user
RUN echo "**** Add linuxgsm user ****" \
# Create the user
# Create the user
&& groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
#

Loading…
Cancel
Save