Skip to content

Commit

Permalink
refactor: update Dockerfile for Ubuntu 18.04, 20.04, and 22.04
Browse files Browse the repository at this point in the history
- 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]
  • Loading branch information
dgibbs64 committed Jul 5, 2023
1 parent 5ae008e commit 50d64ae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.ubuntu-1804
Original file line number Diff line number Diff line change
Expand Up @@ -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 ****" \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ubuntu-2004
Original file line number Diff line number Diff line change
Expand Up @@ -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 ****" \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.ubuntu-2204
Original file line number Diff line number Diff line change
Expand Up @@ -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/* \
Expand Down Expand Up @@ -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 ****" \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 50d64ae

Please sign in to comment.