Skip to content

Instantly share code, notes, and snippets.

@otera
Created October 30, 2020 04:55
Show Gist options
  • Save otera/d975ee1851589b2c25421e1eb6136295 to your computer and use it in GitHub Desktop.
Save otera/d975ee1851589b2c25421e1eb6136295 to your computer and use it in GitHub Desktop.
docker centos8の日本語化
FROM centos:8
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial && \
dnf -y upgrade && \
dnf -y install glibc-locale-source && \
dnf clean all && \
localedef -f UTF-8 -i ja_JP ja_JP.UTF-8 && \
ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
ENV LANG="ja_JP UTF-8" \
LANGUAGE="ja_JP:ja" \
LC_ALL="ja_JP.UTF-8" \
TZ="Asia/Tokyo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment