Browse Source

optimise

pull/7/head
Daniel Gibbs 3 years ago
parent
commit
002211c035
No known key found for this signature in database GPG Key ID: 4D812BAB6228BBA6
  1. 25
      .github/dependabot.yml
  2. 31
      Dockerfile.ubuntu-1804
  3. 32
      Dockerfile.ubuntu-2004
  4. 34
      Dockerfile.ubuntu-2204

25
.github/dependabot.yml

@ -1,15 +1,14 @@
# Set update schedule for GitHub Actions # Set update schedule for GitHub Actions
- name: Dependabot version: 2
version: 2 updates:
updates: - package-ecosystem: "github-actions"
- package-ecosystem: "github-actions" directory: "/"
directory: "/" schedule:
schedule: interval: "daily"
interval: "daily"
- package-ecosystem: "docker" - package-ecosystem: "docker"
# Look for a `Dockerfile` in the `root` directory # Look for a `Dockerfile` in the `root` directory
directory: "/" directory: "/"
# Check for updates once a week # Check for updates once a week
schedule: schedule:
interval: "weekly" interval: "weekly"

31
Dockerfile.ubuntu-1804

@ -4,8 +4,13 @@ LABEL maintainer="LinuxGSM <[email protected]>"
# Install UTF-8 unicode # Install UTF-8 unicode
RUN echo "**** Install UTF-8 ****" \ RUN echo "**** Install UTF-8 ****" \
&& apt-get update \ && apt-get update \
&& apt-get install -y locales apt-utils debconf-utils ca-certificates && apt-get install -y locales apt-utils debconf-utils ca-certificates \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
&& rm -rf /var/tmp/*
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
# Add unicode support # Add unicode support
@ -15,17 +20,17 @@ ENV LANGUAGE 'en_US:en'
# Install SteamCMD # Install SteamCMD
RUN echo "**** Install SteamCMD ****" \ RUN echo "**** Install SteamCMD ****" \
&& echo steam steam/question select "I AGREE" | debconf-set-selections \ && echo steam steam/question select "I AGREE" | debconf-set-selections \
&& echo steam steam/license note '' | debconf-set-selections \ && echo steam steam/license note '' | debconf-set-selections \
&& dpkg --add-architecture i386 \ && dpkg --add-architecture i386 \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends libsdl2-2.0-0:i386 locales steamcmd \ && apt-get install -y --no-install-recommends libsdl2-2.0-0:i386 locales steamcmd \
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \ && ln -s /usr/games/steamcmd /usr/bin/steamcmd \
&& apt-get -y autoremove \ && apt-get -y autoremove \
&& apt-get -y clean \ && apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \ && rm -rf /tmp/* \
&& rm -rf /var/tmp/* && rm -rf /var/tmp/*
# Update SteamCMD # Update SteamCMD
RUN steamcmd +quit RUN steamcmd +quit

32
Dockerfile.ubuntu-2004

@ -4,8 +4,13 @@ LABEL maintainer="LinuxGSM <[email protected]>"
# Install UTF-8 unicode # Install UTF-8 unicode
RUN echo "**** Install UTF-8 ****" \ RUN echo "**** Install UTF-8 ****" \
&& apt-get update \ && apt-get update \
&& apt-get install -y locales apt-utils debconf-utils ca-certificates && apt-get install -y locales apt-utils debconf-utils ca-certificates \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
&& rm -rf /var/tmp/*
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
# Add unicode support # Add unicode support
@ -15,17 +20,18 @@ ENV LANGUAGE 'en_US:en'
# Install SteamCMD # Install SteamCMD
RUN echo "**** Install SteamCMD ****" \ RUN echo "**** Install SteamCMD ****" \
&& echo steam steam/question select "I AGREE" | debconf-set-selections \ && echo steam steam/question select "I AGREE" | debconf-set-selections \
&& echo steam steam/license note '' | debconf-set-selections \ && echo steam steam/license note '' | debconf-set-selections \
&& dpkg --add-architecture i386 \ && dpkg --add-architecture i386 \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends libsdl2-2.0-0:i386 locales steamcmd \ && apt-get install -y --no-install-recommends libsdl2-2.0-0:i386 locales steamcmd \
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \ && ln -s /usr/games/steamcmd /usr/bin/steamcmd \
&& apt-get -y autoremove \ && apt-get -y autoremove \
&& apt-get -y clean \ && apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \ && rm -rf /tmp/* \
&& rm -rf /var/tmp/* && rm -rf /var/tmp/*
# Update SteamCMD # Update SteamCMD
RUN steamcmd +quit RUN steamcmd +quit

34
Dockerfile.ubuntu-2204

@ -2,10 +2,17 @@ FROM ubuntu:22.04
LABEL maintainer="LinuxGSM <[email protected]>" LABEL maintainer="LinuxGSM <[email protected]>"
LABEL maintainer="LinuxGSM <[email protected]>"
# Install UTF-8 unicode # Install UTF-8 unicode
RUN echo "**** Install UTF-8 ****" \ RUN echo "**** Install UTF-8 ****" \
&& apt-get update \ && apt-get update \
&& apt-get install -y locales apt-utils debconf-utils ca-certificates && apt-get install -y locales apt-utils debconf-utils ca-certificates \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
&& rm -rf /var/tmp/*
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
# Add unicode support # Add unicode support
@ -15,17 +22,18 @@ ENV LANGUAGE 'en_US:en'
# Install SteamCMD # Install SteamCMD
RUN echo "**** Install SteamCMD ****" \ RUN echo "**** Install SteamCMD ****" \
&& echo steam steam/question select "I AGREE" | debconf-set-selections \ && echo steam steam/question select "I AGREE" | debconf-set-selections \
&& echo steam steam/license note '' | debconf-set-selections \ && echo steam steam/license note '' | debconf-set-selections \
&& dpkg --add-architecture i386 \ && dpkg --add-architecture i386 \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends libsdl2-2.0-0:i386 locales steamcmd \ && apt-get install -y --no-install-recommends libsdl2-2.0-0:i386 locales steamcmd \
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \ && ln -s /usr/games/steamcmd /usr/bin/steamcmd \
&& apt-get -y autoremove \ && apt-get -y autoremove \
&& apt-get -y clean \ && apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \ && rm -rf /tmp/* \
&& rm -rf /var/tmp/* && rm -rf /var/tmp/*
# Update SteamCMD # Update SteamCMD
RUN steamcmd +quit RUN steamcmd +quit

Loading…
Cancel
Save