Skip to content

Commit ee0fd5c

Browse files
committed
docker: use smaller image, down anoter 100M
1 parent 7441c97 commit ee0fd5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

containers/devenv/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM nixos/nix:latest@sha256:8c144c6c37184fe03fd7fed740c6eeb2ecfd801d6e34a6aba4e38f1c8d10de3e
1+
FROM nixpkgs/nix:latest
22

33
ARG DEVENV_VERSION=latest
44

55
# https://github.com/NixOS/nix/issues/5258
6-
RUN echo "filter-syscalls = false" >> /etc/nix/nix.conf
6+
RUN mkdir /etc/nix && echo "filter-syscalls = false" >> /etc/nix/nix.conf
77

8-
RUN nix profile install -j1 github:cachix/devenv/$DEVENV_VERSION --extra-experimental-features 'flakes nix-command' --accept-flake-config && nix-collect-garbage -d
8+
RUN nix profile install -j1 github:cachix/devenv/$DEVENV_VERSION nixpkgs#gnugrep --extra-experimental-features 'flakes nix-command' --accept-flake-config && nix-collect-garbage -d && rm -rf /root/.cache

0 commit comments

Comments
 (0)