|
|
@ -72,24 +72,20 @@ RUN echo "**** Install NodeJS ****" \ |
|
|
|
RUN echo "**** Install GameDig ****" \ |
|
|
|
&& npm install -g gamedig |
|
|
|
|
|
|
|
##Need use xterm for LinuxGSM## |
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive |
|
|
|
|
|
|
|
ARG USERNAME=linuxgsm |
|
|
|
ARG USER_UID=1000 |
|
|
|
ARG USER_GID=$USER_UID |
|
|
|
ARG USER_GID=${USER_UID} |
|
|
|
|
|
|
|
## Add linuxgsm user |
|
|
|
RUN echo "**** Add linuxgsm user ****" \ |
|
|
|
# Create the user |
|
|
|
&& groupadd --gid $USER_GID $USERNAME \ |
|
|
|
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ |
|
|
|
&& groupadd --gid ${USER_GID} ${USERNAME} \ |
|
|
|
&& useradd --uid ${USER_UID} --gid ${USER_GID} -m ${USERNAME} \ |
|
|
|
# |
|
|
|
# [Optional] Add sudo support. Omit if you don't need to install software after connecting. |
|
|
|
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ |
|
|
|
&& chmod 0440 /etc/sudoers.d/$USERNAME \ |
|
|
|
&& chown $USERNAME:$USERNAME /home/$USERNAME |
|
|
|
&& echo ${USERNAME} ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/${USERNAME} \ |
|
|
|
&& chmod 0440 /etc/sudoers.d/${USERNAME} \ |
|
|
|
&& chown ${USERNAME}:${USERNAME} /home/${USERNAME} |
|
|
|
|
|
|
|
## Download linuxgsm.sh |
|
|
|
RUN echo "**** Download linuxgsm.sh ****" \ |
|
|
|