Created
August 2, 2019 17:02
-
-
Save damianbaar/7194251de2b6f64af459ac861d34a323 to your computer and use it in GitHub Desktop.
docker-nix-buildkit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM lnl7/nix:2.2 | |
RUN nix-env -iA \ | |
nixpkgs.curl \ | |
nixpkgs.jq \ | |
nixpkgs.zsh | |
COPY ./expr.nix . | |
RUN nix-build expr.nix | |
WORKDIR result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{pkgs ? import <nixpkgs> {}}: | |
pkgs.writeScriptBin "test-script" '' | |
echo "nananana" | |
'' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DOCKER_BUILDKIT=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment