From: Paul B Date: Mon, 29 Oct 2018 09:08:54 +0000 (+0100) Subject: Adding LANG variable which is empty by default on Alpine X-Git-Tag: 2.1.3~1^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=refs%2Fpull%2F1%2Fhead;p=github%2Ffretlink%2Fdocker-nix.git Adding LANG variable which is empty by default on Alpine Problem arising with nix found by @haitlahcen --- diff --git a/Dockerfile b/Dockerfile index 8b7c44d..22c0997 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]