Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 699 Bytes

CONTRIBUTING.md

File metadata and controls

49 lines (33 loc) · 699 Bytes

Building the Dockerfile without having nix installed (inside docker)

  1. Starting the Docker container
docker run -it --rm -v "$(pwd):/app" nixos/nix
  1. Enable flakes
echo 'experimental-features = nix-command flakes' >> /etc/nix/nix.conf
  1. Switch to app directory
cd /app
  1. Build the binary
nix build .#bin
  1. Copy the binary to the output folder
cp -r $(readlink -f result) output
  1. Build the Docker image
nix build .#dockerImage
  1. Copy the Docker image to the output folder
cp $(readlink -f result) output/docker-image.tar.gz

Importing the nix-built image into docker

docker load -i output/docker-image.tar.gz