Skip to content

Commit 4466e14

Browse files
committed
Disable nix sandbox in the dockerfile to enable building in qemu
1 parent 57bd3da commit 4466e14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/docker/dev/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ FROM nixos/nix
33
WORKDIR /autonomy
44
COPY tools/nix ./tools/nix
55

6-
RUN nix-channel --update \
7-
&& echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf \
6+
RUN echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf \
7+
&& echo "sandbox = false" >> /etc/nix/nix.conf \
8+
&& echo "filter-syscalls = false" >> /etc/nix/nix.conf \
9+
&& nix-channel --update \
810
&& nix develop ./tools/nix --command echo "Nix environment built and cached" \
911
&& mkdir -p /root/.local/bin \
1012
&& mkdir -p /root/.cache

0 commit comments

Comments
 (0)