From c223b406d3ff61af6a0ce736258bb68091e36925 Mon Sep 17 00:00:00 2001 From: Paul B Date: Mon, 29 Oct 2018 10:08:54 +0100 Subject: Adding LANG variable which is empty by default on Alpine Problem arising with nix found by @haitlahcen --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"] -- cgit v1.2.3