aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'debian/Dockerfile')
-rw-r--r--debian/Dockerfile11
1 files changed, 7 insertions, 4 deletions
diff --git a/debian/Dockerfile b/debian/Dockerfile
index 70e36fc..f7034d2 100644
--- a/debian/Dockerfile
+++ b/debian/Dockerfile
@@ -2,7 +2,7 @@
2FROM debian:stable-slim 2FROM debian:stable-slim
3 3
4ARG NIX_VERSION 4ARG NIX_VERSION
5ENV NIX_VERSION ${NIX_VERSION:-2.1.3} 5ENV NIX_VERSION ${NIX_VERSION:-2.2.1}
6ARG LANG 6ARG LANG
7ENV LANG ${LANG:-"en_US.UTF-8"} 7ENV LANG ${LANG:-"en_US.UTF-8"}
8 8
@@ -11,7 +11,9 @@ RUN addgroup --gid 30000 --system nixbld \
11 && adduser --disabled-password nixuser \ 11 && adduser --disabled-password nixuser \
12 && mkdir -m 0755 /nix && chown nixuser /nix \ 12 && mkdir -m 0755 /nix && chown nixuser /nix \
13 && apt update && apt install -y wget bzip2 \ 13 && apt update && apt install -y wget bzip2 \
14 && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* 14 && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
15 # sandboxing enabled by default since 2.2
16 && mkdir -p /etc/nix && echo 'sandbox = false' > /etc/nix/nix.conf
15 17
16USER nixuser 18USER nixuser
17ENV USER=nixuser 19ENV USER=nixuser
@@ -27,8 +29,9 @@ RUN echo ". ${ENV}" >> ${HOME}/.profile
27# All subsequent "RUN" will use a login shell 29# All subsequent "RUN" will use a login shell
28SHELL ["/usr/bin/env", "bash", "-l", "-c"] 30SHELL ["/usr/bin/env", "bash", "-l", "-c"]
29 31
30RUN nix-channel --add https://nixos.org/channels/nixpkgs-18.09-darwin nixpkgs \ 32RUN nix-channel --add https://nixos.org/channels/nixpkgs-19.03-darwin nixpkgs \
31 && nix-channel --update 33 && nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable \
34 && nix-channel --update
32 35
33# Propagate UTF8 36# Propagate UTF8
34# https://github.com/NixOS/nix/issues/599#issuecomment-153885553 37# https://github.com/NixOS/nix/issues/599#issuecomment-153885553