This commit is contained in:
@@ -2,9 +2,6 @@
|
||||
# Builder
|
||||
#
|
||||
|
||||
FROM scratch AS private
|
||||
ADD git@code.fizz.buzz:talexander/homepage_private.git /homepage_private
|
||||
|
||||
FROM nixos/nix:2.31.3 AS builder
|
||||
|
||||
RUN tee -a /etc/nix/nix.conf <<EOF
|
||||
@@ -18,8 +15,7 @@ RUN cp "$(nix build nixpkgs#cacert --print-out-paths)/etc/ssl/certs/ca-bundle.cr
|
||||
COPY . /tmp/build
|
||||
WORKDIR /tmp/build
|
||||
|
||||
COPY --link --from=private /homepage_private /private
|
||||
RUN nix build --override-input homepage_private /private '.#docker_env'
|
||||
RUN nix build --mount=type=ssh '.#docker_env'
|
||||
|
||||
# Export the built closure to a folder
|
||||
RUN mkdir /tmp/nix-store-closure
|
||||
|
||||
Reference in New Issue
Block a user