From 9d3bbc736b4199083d489ece3ad37c999037b68d Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 28 Aug 2022 12:06:23 +0200 Subject: [PATCH] nix: Add hint how to derive docker image Signed-off-by: Wolfgang Walther --- nix/tools/docker/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nix/tools/docker/README.md b/nix/tools/docker/README.md index eb8ee4238..dfa14f2e5 100644 --- a/nix/tools/docker/README.md +++ b/nix/tools/docker/README.md @@ -93,3 +93,18 @@ Image efficiency score: 100 % Count Total Space Path ``` + +# Deriving from the optimized image + +Since the docker image is minimal, it does not contain a shell or other utilities. +To derive a non-minimal image, you can do the following: + +```Dockerfile +# derive from any base image you want +FROM alpine:latest + +# copy PostgREST over +COPY --from=postgrest/postgrest /bin/postgrest /bin + +# add your other stuff +```