Skip to content

Commit 3fc04c3

Browse files
committed
hack: Add Dockerfile that builds up nix store at build time
Avoids fetching from nix cache/building over and over. Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
1 parent 045aaab commit 3fc04c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!shell.nix

hack/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM nixos/nix
2+
3+
COPY shell.nix .
4+
RUN nix-shell --run true

0 commit comments

Comments
 (0)