Skip to content

Commit

Permalink
Remove ca-certificates in the final image (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigpastro authored Oct 31, 2024
1 parent 85f4602 commit 6126422
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Based off of https://github.com/tembo-io/pgmq/blob/main/images/pgmq-pg/Dockerfile
ARG PG_MAJOR_VERSION=16

FROM postgres:${PG_MAJOR_VERSION}-bookworm as build
FROM postgres:${PG_MAJOR_VERSION}-bookworm AS build

ARG PG_MAJOR_VERSION=16

Expand Down Expand Up @@ -36,9 +36,4 @@ ARG PG_MAJOR_VERSION=16
COPY --from=build /usr/share/postgresql/${PG_MAJOR_VERSION}/extension /usr/share/postgresql/${PG_MAJOR_VERSION}/extension
COPY --from=build /usr/lib/postgresql/${PG_MAJOR_VERSION}/lib /usr/lib/postgresql/${PG_MAJOR_VERSION}/lib

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

USER postgres

0 comments on commit 6126422

Please sign in to comment.