diff options
author | paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> | 2018-10-29 10:41:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-29 10:41:25 +0100 |
commit | dedbcf1564d728be9e5bc359244b4ffba7665615 (patch) | |
tree | 6519c7efd8131f7748f2abdfd445ed24a4247e17 | |
parent | cc4c1d634ad838b99eb71de8c3321db2d8c3c7ee (diff) | |
parent | 75cabc506563883e5473c5c15b41494566350efd (diff) | |
download | docker-nix-dedbcf1564d728be9e5bc359244b4ffba7665615.tar.gz docker-nix-dedbcf1564d728be9e5bc359244b4ffba7665615.tar.zst docker-nix-dedbcf1564d728be9e5bc359244b4ffba7665615.zip |
Merge pull request #2 from paulrbr-fl/add-lang2.1.3
Build locales with NIX
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -24,6 +24,17 @@ RUN cd && wget https://nixos.org/releases/nix/nix-$NIX_VERSION/nix-$NIX_VERSION- | |||
24 | 24 | ||
25 | ENV ENV="/home/nixuser/.nix-profile/etc/profile.d/nix.sh" | 25 | ENV ENV="/home/nixuser/.nix-profile/etc/profile.d/nix.sh" |
26 | RUN echo ". ${ENV}" >> ${HOME}/.profile | 26 | RUN echo ". ${ENV}" >> ${HOME}/.profile |
27 | 27 | # All subsequent "RUN" will use a login shell | |
28 | SHELL ["/usr/bin/env", "bash", "-l", "-c"] | 28 | SHELL ["/usr/bin/env", "bash", "-l", "-c"] |
29 | |||
30 | RUN 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 | ||
36 | RUN 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 | ||
29 | ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"] | 40 | ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"] |