Reduce size of the static docker image by patching the Nix openssl package (#1528)

* hook docker images into the default builds
This commit is contained in:
Remo Rechkemmer
2020-05-20 11:49:11 -05:00
committed by GitHub
parent 67344c8e0a
commit 289bb66f56
5 changed files with 105 additions and 2 deletions
+8 -2
View File
@@ -81,12 +81,18 @@ rec {
postgrestStatic =
lib.justStaticExecutables (lib.dontCheck drvStatic);
# Docker image and loading script.
# Docker images and loading script.
docker =
pkgs.callPackage nix/docker { postgrest = postgrestStatic; };
# Script `postgrest-docker-load` that loads the images built with Nix into
# Docker, using `docker load -i` under the hood. Referenced here from the top
# level so that it gets built by default.
dockerLoad =
docker.load;
# Environment in which PostgREST can be built with cabal, useful e.g. for
# defining a shell for nix-shell.
# defining a shell for `nix-shell`.
env =
drv.env;