Browse Source

refactor: update Dockerfile for Ubuntu 18.04, 20.04, and 22.04

- Refactored the Dockerfile for Ubuntu 18.04, 20.04, and 22.04.
- Replaced `wget` with `curl` to download linuxgsm.sh.
- Updated package installation by replacing `vim` with `nvim`.
- Updated README.md to reflect changes in the base LinuxGSM image.

Co-authored-by: [Author Name]
pull/23/head
Daniel Gibbs 2 years ago
parent
commit
50d64ae23b
  1. 2
      Dockerfile.ubuntu-1804
  2. 2
      Dockerfile.ubuntu-2004
  3. 4
      Dockerfile.ubuntu-2204
  4. 2
      README.md

2
Dockerfile.ubuntu-1804

@ -102,7 +102,7 @@ HEALTHCHECK --interval=1m --timeout=1m --start-period=2m --retries=1 CMD /app/en
## Download linuxgsm.sh
RUN echo "**** Download linuxgsm.sh ****" \
&& set -ex \
&& wget -O linuxgsm.sh "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${LGSM_GITHUBBRANCH}/linuxgsm.sh" \
&& curl -Lo linuxgsm.sh "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${LGSM_GITHUBBRANCH}/linuxgsm.sh" \
&& chmod +x linuxgsm.sh
RUN echo "**** Get LinuxGSM Modules ****" \

2
Dockerfile.ubuntu-2004

@ -102,7 +102,7 @@ HEALTHCHECK --interval=1m --timeout=1m --start-period=2m --retries=1 CMD /app/en
## Download linuxgsm.sh
RUN echo "**** Download linuxgsm.sh ****" \
&& set -ex \
&& wget -O linuxgsm.sh "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${LGSM_GITHUBBRANCH}/linuxgsm.sh" \
&& curl -Lo linuxgsm.sh "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${LGSM_GITHUBBRANCH}/linuxgsm.sh" \
&& chmod +x linuxgsm.sh
RUN echo "**** Get LinuxGSM Modules ****" \

4
Dockerfile.ubuntu-2204

@ -61,7 +61,7 @@ RUN echo "**** Install Base LinuxGSM Requirements ****" \
iproute2 \
iputils-ping \
nano \
vim \
nvim \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
@ -102,7 +102,7 @@ HEALTHCHECK --interval=1m --timeout=1m --start-period=2m --retries=1 CMD /app/en
## Download linuxgsm.sh
RUN echo "**** Download linuxgsm.sh ****" \
&& set -ex \
&& wget -O linuxgsm.sh "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${LGSM_GITHUBBRANCH}/linuxgsm.sh" \
&& curl -o linuxgsm.sh "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${LGSM_GITHUBBRANCH}/linuxgsm.sh" \
&& chmod +x linuxgsm.sh
RUN echo "**** Get LinuxGSM Modules ****" \

2
README.md

@ -1,4 +1,4 @@
# LinuxGSM Docker Image
# LinuxGSM Base Docker Image
## This is the base LinuxGSM image only.
## Use <a href="https://github.com/GameServerManagers/docker-gameserver">docker-gameserver</a> for full game servers

Loading…
Cancel
Save