Skip to content

Commit a44d229

Browse files
committed
Fix some CA certs being unavailable
1 parent 2152bb2 commit a44d229

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/feed-requests/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ RUN curl -sf https://gobinaries.com/tj/node-prune | sh
2727
RUN npm prune --production
2828
RUN /usr/local/bin/node-prune
2929

30-
FROM node:22-alpine AS prod
30+
FROM node:22-slim AS prod
3131

32-
# Alpine has a minimal CA bundle; add full certs to avoid SSL verification errors
33-
RUN apk --no-cache add ca-certificates && update-ca-certificates
32+
# Slim image doesn't include CA certs; install them for sites like apps.usfa.fema.gov
33+
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
3434
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
3535

3636
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)