nix: Add hint how to derive docker image
Signed-off-by: Wolfgang Walther <walther@technowledgy.de>
This commit is contained in:
committed by
Steve Chavez
parent
38ecaa44db
commit
9d3bbc736b
@@ -93,3 +93,18 @@ Image efficiency score: 100 %
|
|||||||
|
|
||||||
Count Total Space Path
|
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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user