diff options
author | paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> | 2018-10-29 10:19:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-29 10:19:21 +0100 |
commit | cc4c1d634ad838b99eb71de8c3321db2d8c3c7ee (patch) | |
tree | 419cfe0e23406c93430a9e230c7b0ca28f59cf07 /Dockerfile | |
parent | 9271ece745c3d5a0db1a4ddbe977ce437151ec3f (diff) | |
parent | c223b406d3ff61af6a0ce736258bb68091e36925 (diff) | |
download | docker-nix-cc4c1d634ad838b99eb71de8c3321db2d8c3c7ee.tar.gz docker-nix-cc4c1d634ad838b99eb71de8c3321db2d8c3c7ee.tar.zst docker-nix-cc4c1d634ad838b99eb71de8c3321db2d8c3c7ee.zip |
Merge pull request #1 from paulrbr-fl/add-lang
Adding LANG variable which is empty by default on Alpine
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3,6 +3,8 @@ FROM alpine | |||
3 | 3 | ||
4 | ARG NIX_VERSION | 4 | ARG NIX_VERSION |
5 | ENV NIX_VERSION ${NIX_VERSION:-2.1.3} | 5 | ENV NIX_VERSION ${NIX_VERSION:-2.1.3} |
6 | ARG LANG | ||
7 | ENV LANG ${LANG:-"en_US.UTF-8"} | ||
6 | 8 | ||
7 | RUN addgroup -g 30000 -S nixbld \ | 9 | RUN 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 | ||
23 | ENV ENV="/home/nixuser/.nix-profile/etc/profile.d/nix.sh" | 25 | ENV ENV="/home/nixuser/.nix-profile/etc/profile.d/nix.sh" |
24 | RUN ln -s ${ENV} ${HOME}/.profile | 26 | RUN echo ". ${ENV}" >> ${HOME}/.profile |
27 | |||
25 | SHELL ["/usr/bin/env", "bash", "-l", "-c"] | 28 | SHELL ["/usr/bin/env", "bash", "-l", "-c"] |
26 | ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"] | 29 | ENTRYPOINT ["/usr/bin/env", "bash", "-l", "-c"] |