aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorPaul B <paul@bonaud.fr>2018-10-29 10:08:54 +0100
committerPaul B <paul@bonaud.fr>2018-10-29 10:08:54 +0100
commitc223b406d3ff61af6a0ce736258bb68091e36925 (patch)
tree419cfe0e23406c93430a9e230c7b0ca28f59cf07 /Dockerfile
parent9271ece745c3d5a0db1a4ddbe977ce437151ec3f (diff)
downloaddocker-nix-c223b406d3ff61af6a0ce736258bb68091e36925.tar.gz
docker-nix-c223b406d3ff61af6a0ce736258bb68091e36925.tar.zst
docker-nix-c223b406d3ff61af6a0ce736258bb68091e36925.zip
Adding LANG variable which is empty by default on Alpine
Problem arising with nix found by @haitlahcen
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 8b7c44d..22c0997 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,8 @@ FROM alpine
3 3
4ARG NIX_VERSION 4ARG NIX_VERSION
5ENV NIX_VERSION ${NIX_VERSION:-2.1.3} 5ENV NIX_VERSION ${NIX_VERSION:-2.1.3}
6ARG LANG
7ENV LANG ${LANG:-"en_US.UTF-8"}
6 8
7RUN addgroup -g 30000 -S nixbld \ 9RUN addgroup -g 30000 -S nixbld \
8 && 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 \ 10 && 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-
21 && rm -rf ~/nix-*-* 23 && rm -rf ~/nix-*-*
22 24
23ENV ENV="/home/nixuser/.nix-profile/etc/profile.d/nix.sh" 25ENV ENV="/home/nixuser/.nix-profile/etc/profile.d/nix.sh"
24RUN ln -s ${ENV} ${HOME}/.profile 26RUN echo ". ${ENV}" >> ${HOME}/.profile
27
25SHELL ["/usr/bin/env", "bash", "-l", "-c"] 28SHELL ["/usr/bin/env", "bash", "-l", "-c"]
26ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"] 29ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"]