From 08b3fb3d0db7831cf4eb7d2e74d6b4e572ff34a2 Mon Sep 17 00:00:00 2001 From: Craig Pastro <28915792+craigpastro@users.noreply.github.com> Date: Thu, 31 Oct 2024 11:55:10 -0700 Subject: [PATCH] Remove ca-certificates in the final image --- Dockerfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 90bd253..552c102 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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