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 \
&& 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"]