aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorPaul B <paul@bonaud.fr>2018-10-29 10:26:49 +0100
committerPaul B <paul@bonaud.fr>2018-10-29 10:26:49 +0100
commit75cabc506563883e5473c5c15b41494566350efd (patch)
tree6519c7efd8131f7748f2abdfd445ed24a4247e17 /Dockerfile
parentc223b406d3ff61af6a0ce736258bb68091e36925 (diff)
downloaddocker-nix-75cabc506563883e5473c5c15b41494566350efd.tar.gz
docker-nix-75cabc506563883e5473c5c15b41494566350efd.tar.zst
docker-nix-75cabc506563883e5473c5c15b41494566350efd.zip
Build locales with NIX
Again something found and debugged by the 🦸 @haitlahcen
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 22c0997..5aa7fcc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,6 +24,17 @@ RUN cd && wget https://nixos.org/releases/nix/nix-$NIX_VERSION/nix-$NIX_VERSION-
24 24
25ENV ENV="/home/nixuser/.nix-profile/etc/profile.d/nix.sh" 25ENV ENV="/home/nixuser/.nix-profile/etc/profile.d/nix.sh"
26RUN echo ". ${ENV}" >> ${HOME}/.profile 26RUN echo ". ${ENV}" >> ${HOME}/.profile
27 27# All subsequent "RUN" will use a login shell
28SHELL ["/usr/bin/env", "bash", "-l", "-c"] 28SHELL ["/usr/bin/env", "bash", "-l", "-c"]
29
30RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable \
31 && nix-channel --update
32
33# Propagate UTF8
34# https://github.com/NixOS/nix/issues/599#issuecomment-153885553
35# The same is hapenning with stack2nix
36RUN nix-env -iA nixpkgs.glibcLocales \
37 && echo "export LOCALE_ARCHIVE=$(nix-env --installed --no-name --out-path --query glibc-locales)/lib/locale/locale-archive" >> ${HOME}/.profile
38
39# Make sure to use "login" shell when running container
29ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"] 40ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"]