Skip to content

Commit 4c5745a

Browse files
committed
feature: docker: io: apt-get upgrade
1 parent 582b742 commit 4c5745a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docker/Dockerfile.io

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ RUN apt-get update && apt-get upgrade -y && apt-get autoremove && \
2121
rm -rf /var/lib/apt/lists/* && \
2222
echo "> install nix" && \
2323
useradd -m -s /bin/bash nixuser && \
24-
echo "nixuser ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/nixuser && \
25-
chmod 0440 /etc/sudoers.d/nixuser && \
26-
su - nixuser -c "curl -L https://nixos.org/nix/install | sh -s -- --no-daemon --no-sendbox" && \
24+
mkdir /nix && \
25+
chown nixuser /nix
26+
su - nixuser -c "curl -L https://nixos.org/nix/install | sh -s -- --no-daemon" && \
2727
mv /home/nixuser/.nix-profile /usr/local/src/nix-profile && \
2828
mv /home/nixuser/.nix-defexpr /usr/local/src/nix-defexpr && \
29-
rm -rf /etc/sudoers.d/nixuser && \
3029
userdel -r nixuser && \
3130
echo "> install nvm" && \
3231
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && \

0 commit comments

Comments
 (0)