]> git.immae.eu Git - github/fretlink/docker-nix.git/commitdiff
Merge pull request #1 from paulrbr-fl/add-lang
authorpaulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com>
Mon, 29 Oct 2018 09:19:21 +0000 (10:19 +0100)
committerGitHub <noreply@github.com>
Mon, 29 Oct 2018 09:19:21 +0000 (10:19 +0100)
Adding LANG variable which is empty by default on Alpine

Dockerfile

index 8b7c44d4fb7dea4b4cbd63ea1caeef0a7e9b3528..22c0997c444f6b3ba60c279b20a92d507fee6f6c 100644 (file)
@@ -3,6 +3,8 @@ FROM alpine
 
 ARG NIX_VERSION
 ENV NIX_VERSION ${NIX_VERSION:-2.1.3}
+ARG LANG
+ENV LANG ${LANG:-"en_US.UTF-8"}
 
 RUN addgroup -g 30000 -S nixbld \
     && for i in $(seq 1 30); do adduser -S -D -h /var/empty -g "Nix build user $i" -u $((30000 + i)) -G nixbld nixbld$i ; done \
@@ -21,6 +23,7 @@ RUN cd && wget https://nixos.org/releases/nix/nix-$NIX_VERSION/nix-$NIX_VERSION-
     && rm -rf ~/nix-*-*
 
 ENV ENV="/home/nixuser/.nix-profile/etc/profile.d/nix.sh"
-RUN ln -s ${ENV} ${HOME}/.profile
+RUN echo ". ${ENV}" >> ${HOME}/.profile
+
 SHELL ["/usr/bin/env", "bash", "-l", "-c"]
 ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"]