Skip to content

Commit 772ac48

Browse files
authored
fix: install ca-certificates before wget, clean apt after download (#2433)
1 parent 863f14b commit 772ac48

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

apps/api/Dockerfile.multistage

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ WORKDIR /app
8484
RUN chown nestjs:nestjs /app
8585

8686
# Install runtime dependencies + AWS RDS CA certificate bundle
87-
RUN apt-get update && apt-get install -y --no-install-recommends wget && rm -rf /var/lib/apt/lists/* \
88-
&& wget -q -O /usr/local/share/aws-rds-ca-bundle.pem https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem
87+
RUN apt-get update && apt-get install -y --no-install-recommends wget ca-certificates \
88+
&& wget -q -O /usr/local/share/aws-rds-ca-bundle.pem https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem \
89+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
8990

9091
ENV NODE_EXTRA_CA_CERTS=/usr/local/share/aws-rds-ca-bundle.pem
9192

0 commit comments

Comments
 (0)