Skip to content

Commit

Permalink
build: install openssl in node-slim image
Browse files Browse the repository at this point in the history
This is a known issue in Docker Node image nodejs/docker-node#1919.
  • Loading branch information
samhwang committed Mar 7, 2024
1 parent c701c19 commit cb40683
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Expand Up @@ -26,6 +26,13 @@ RUN pnpm build
FROM node:20.10-slim as production
WORKDIR /app

RUN set -xe && \
apt-get update && \
apt-get install -y --no-install-recommends openssl && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /usr/share/man/* /usr/share/doc/*

COPY --chown=node:node --from=build /app/build build

USER node
Expand Down

0 comments on commit cb40683

Please sign in to comment.