Browse Source

refactor(dockerfiles): optimize locale generation in Dockerfiles

* Moved `locale-gen en_US.UTF-8` command into the main installation RUN command for efficiency.
* Removed redundant `RUN locale-gen` lines to streamline the Dockerfile.
pull/81/head
Daniel Gibbs 1 month ago
parent
commit
867d487684
Failed to extract signature
  1. 3
      Dockerfile.ubuntu-2004
  2. 3
      Dockerfile.ubuntu-2204
  3. 3
      Dockerfile.ubuntu-2404

3
Dockerfile.ubuntu-2004

@ -32,15 +32,14 @@ RUN echo "**** Install SteamCMD ****" \
tzdata \
steamcmd \
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \
&& locale-gen en_US.UTF-8 \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /usr/share/man /usr/share/doc /usr/share/info /usr/share/lintian /usr/share/locale/* \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add unicode support
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENTRYPOINT ["steamcmd"]
CMD ["+help", "+quit"]

3
Dockerfile.ubuntu-2204

@ -32,15 +32,14 @@ RUN echo "**** Install SteamCMD ****" \
tzdata \
steamcmd \
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \
&& locale-gen en_US.UTF-8 \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /usr/share/man /usr/share/doc /usr/share/info /usr/share/lintian /usr/share/locale/* \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add unicode support
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENTRYPOINT ["steamcmd"]
CMD ["+help", "+quit"]

3
Dockerfile.ubuntu-2404

@ -32,15 +32,14 @@ RUN echo "**** Install SteamCMD ****" \
tzdata \
steamcmd \
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \
&& locale-gen en_US.UTF-8 \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /usr/share/man /usr/share/doc /usr/share/info /usr/share/lintian /usr/share/locale/* \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add unicode support
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENTRYPOINT ["steamcmd"]
CMD ["+help", "+quit"]

Loading…
Cancel
Save