Skip to content

Instantly share code, notes, and snippets.

@damianbaar
Created August 2, 2019 17:02
Show Gist options
  • Save damianbaar/7194251de2b6f64af459ac861d34a323 to your computer and use it in GitHub Desktop.
Save damianbaar/7194251de2b6f64af459ac861d34a323 to your computer and use it in GitHub Desktop.
docker-nix-buildkit
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
{pkgs ? import <nixpkgs> {}}:
pkgs.writeScriptBin "test-script" ''
echo "nananana"
''
export DOCKER_BUILDKIT=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment