Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ RUN make
FROM postgres:$POSTGRES_VERSION-bookworm
ARG POSTGRES_VERSION

RUN apt-get update && apt-get -y install postgresql-$POSTGRES_VERSION-postgis-3
RUN apt-get update && apt-get -y install postgresql-$POSTGRES_VERSION-postgis-3 && rm -rf /var/lib/apt/lists/*

COPY --from=0 /build/ensure_role_and_database_exists.so /usr/lib/postgresql/$POSTGRES_VERSION/lib/ensure_role_and_database_exists.so
4 changes: 2 additions & 2 deletions ensure_role_and_database_exists.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static void ensure_role_and_database_exists(Port *port, int status) {
port->user_name,
postgres_user,
postgres_user
) < 0) {
) < 0) {
ereport(ERROR, errmsg("failed to allocate command string"));
}

Expand All @@ -69,7 +69,7 @@ static void ensure_role_and_database_exists(Port *port, int status) {
port->database_name,
postgres_user,
postgres_user
) < 0) {
) < 0) {
ereport(ERROR, errmsg("failed to allocate command string"));
}

Expand Down