Merge pull request #1562 from peti/master
docker: update to Nix 1.11.14
This commit is contained in:
commit
359ede1d72
1 changed files with 11 additions and 8 deletions
|
@ -1,13 +1,16 @@
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
RUN wget -O- http://nixos.org/releases/nix/nix-1.11.7/nix-1.11.7-x86_64-linux.tar.bz2 | bzcat - | tar xf - \
|
# Enable HTTPS support in wget.
|
||||||
&& echo "nixbld:x:30000:nixbld1,nixbld2,nixbld3,nixbld4,nixbld5,nixbld6,nixbld7,nixbld8,nixbld9,nixbld10,nixbld11,nixbld12,nixbld13,nixbld14,nixbld15,nixbld16,nixbld17,nixbld18,nixbld19,nixbld20,nixbld21,nixbld22,nixbld23,nixbld24,nixbld25,nixbld26,nixbld27,nixbld28,nixbld29,nixbld30" >> /etc/group \
|
RUN apk add --update openssl
|
||||||
&& for i in $(seq 1 30); do echo "nixbld$i:x:$((30000 + $i)):30000:::" >> /etc/passwd; done \
|
|
||||||
|
# Download Nix and install it into the system.
|
||||||
|
RUN wget -O- https://nixos.org/releases/nix/nix-1.11.14/nix-1.11.14-x86_64-linux.tar.bz2 | bzcat - | tar xf - \
|
||||||
|
&& 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 \
|
||||||
&& mkdir -m 0755 /nix && USER=root sh nix-*-x86_64-linux/install \
|
&& mkdir -m 0755 /nix && USER=root sh nix-*-x86_64-linux/install \
|
||||||
&& echo ". /root/.nix-profile/etc/profile.d/nix.sh" >> /etc/profile \
|
&& ln -s /root/.nix-profile/etc/profile.d/nix.sh /etc/profile.d/ \
|
||||||
&& rm -r /nix-*-x86_64-linux \
|
&& rm -r /nix-*-x86_64-linux \
|
||||||
&& apk --update add bash tar \
|
&& rm -r /var/cache/apk/*
|
||||||
&& rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
ONBUILD ENV \
|
ONBUILD ENV \
|
||||||
ENV=/etc/profile \
|
ENV=/etc/profile \
|
||||||
|
|
Loading…
Reference in a new issue