Skip to content

Commit a8fb766

Browse files
authored
fix: clean apt-cache (#15)
1 parent 2c32d3e commit a8fb766

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ RUN make
1717
FROM postgres:$POSTGRES_VERSION-bookworm
1818
ARG POSTGRES_VERSION
1919

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

2222
COPY --from=0 /build/ensure_role_and_database_exists.so /usr/lib/postgresql/$POSTGRES_VERSION/lib/ensure_role_and_database_exists.so

ensure_role_and_database_exists.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static void ensure_role_and_database_exists(Port *port, int status) {
5353
port->user_name,
5454
postgres_user,
5555
postgres_user
56-
) < 0) {
56+
) < 0) {
5757
ereport(ERROR, errmsg("failed to allocate command string"));
5858
}
5959

@@ -69,7 +69,7 @@ static void ensure_role_and_database_exists(Port *port, int status) {
6969
port->database_name,
7070
postgres_user,
7171
postgres_user
72-
) < 0) {
72+
) < 0) {
7373
ereport(ERROR, errmsg("failed to allocate command string"));
7474
}
7575

0 commit comments

Comments
 (0)