aboutsummaryrefslogtreecommitdiffhomepage
path: root/alpine
diff options
context:
space:
mode:
Diffstat (limited to 'alpine')
-rw-r--r--alpine/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/alpine/Dockerfile b/alpine/Dockerfile
index 952e3ea..c5d07b2 100644
--- a/alpine/Dockerfile
+++ b/alpine/Dockerfile
@@ -2,7 +2,7 @@
2FROM alpine 2FROM alpine
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 -g 30000 -S nixbld \
11 && adduser -D nixuser \ 11 && adduser -D nixuser \
12 && mkdir -m 0755 /nix && chown nixuser /nix \ 12 && mkdir -m 0755 /nix && chown nixuser /nix \
13 && apk add --no-cache bash \ 13 && apk add --no-cache bash \
14 && rm -rf /var/cache/apk/* 14 && rm -rf /var/cache/apk/* \
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