diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 7a0ce6f..86fee35 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -32,7 +32,7 @@ jobs: uses: docker/build-push-action@v3.2.0 with: context: . - file: ./Dockerfile + file: ./Dockerfile.ubuntu-2204 platforms: linux/amd64 push: true tags: | @@ -50,3 +50,13 @@ jobs: tags: | gameservermanagers/steamcmd:ubuntu-20.04 ghcr.io/gameservermanagers/steamcmd:ubuntu-20.04 + - name: Build and push (Ubuntu 18.04) + uses: docker/build-push-action@v3.2.0 + with: + context: . + file: ./Dockerfile.ubuntu-1804 + platforms: linux/amd64 + push: true + tags: | + gameservermanagers/steamcmd:ubuntu-18.04 + ghcr.io/gameservermanagers/steamcmd:ubuntu-18.04 diff --git a/Dockerfile.ubuntu-1804 b/Dockerfile.ubuntu-1804 new file mode 100644 index 0000000..7e49549 --- /dev/null +++ b/Dockerfile.ubuntu-1804 @@ -0,0 +1,31 @@ +FROM ubuntu:18.04 + +LABEL maintainer="LinuxGSM " + +# Install UTF-8 unicode +RUN echo "**** Install UTF-8 ****" \ + && apt-get update \ + && apt-get install -y locales apt-utils debconf-utils ca-certificates +RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 + +# Add unicode support +RUN locale-gen en_US.UTF-8 +ENV LANG 'en_US.UTF-8' +ENV LANGUAGE 'en_US:en' + +# Install SteamCMD +RUN echo "**** Install SteamCMD ****" \ +&& echo steam steam/question select "I AGREE" | debconf-set-selections \ +&& echo steam steam/license note '' | debconf-set-selections \ +&& dpkg --add-architecture i386 \ +&& apt-get update \ +&& apt-get install -y --no-install-recommends libsdl2-2.0-0:i386 locales steamcmd \ +&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \ +&& apt-get -y autoremove \ +&& apt-get -y clean \ +&& rm -rf /var/lib/apt/lists/* \ +&& rm -rf /tmp/* \ +&& rm -rf /var/tmp/* + +# Update SteamCMD +RUN steamcmd +quit diff --git a/Dockerfile b/Dockerfile.ubuntu-2204 similarity index 100% rename from Dockerfile rename to Dockerfile.ubuntu-2204