Skip to content

Instantly share code, notes, and snippets.

@lnxph-devops-sareno
Forked from shyd/Dockerfile
Created March 20, 2025 04:22
Show Gist options
  • Save lnxph-devops-sareno/7d1e5aff2d92a7a593038111febd1503 to your computer and use it in GitHub Desktop.
Save lnxph-devops-sareno/7d1e5aff2d92a7a593038111febd1503 to your computer and use it in GitHub Desktop.
install locales inside a docker image
FROM debian
RUN apt-get update && \
apt-get install -y \
locales && \
rm -r /var/lib/apt/lists/*
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment