Skip to content

Commit

Permalink
Fix FLAKE_REF going out of scope in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
elpdt852 committed Feb 20, 2024
1 parent 177e8b2 commit 6d98232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ ARG FLAKE_REF=github:pdtpartners/nix-snapshotter
FROM nixpkgs/nix-flakes AS nix

FROM nix AS base
ARG FLAKE_REF
RUN nix build "$FLAKE_REF#k3s"
RUN nix build "$FLAKE_REF#containerd"
RUN nix build "$FLAKE_REF#nix-snapshotter"

FROM base AS vm
ARG FLAKE_REF
RUN nix build \
--out-link /vm \
"#nixosConfigurations.vm.config.system.build.vm"
Expand Down

0 comments on commit 6d98232

Please sign in to comment.