Skip to content

Commit f9ed08b

Browse files
authored
Add volume mount to slim build (#17)
1 parent a9cc8a9 commit f9ed08b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

slim-image.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ slim build --target "$SOURCE_IMAGE" \
4444
--tag "$TARGET_IMAGE" \
4545
--http-probe=false \
4646
--continue-after=15 \
47+
--mount slim-pgdata:/var/lib/postgresql/data \ # mount volume so it starts with an empty PGDATA to initdb will be called and the components used for it will be perserved
4748
--expose=5432 \
4849
--expose=8008 \
4950
--expose=8081 \

0 commit comments

Comments
 (0)