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 0a55d5f commit b637451
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Expand Up @@ -27,6 +27,13 @@ RUN pnpm install --frozen-lockfile --production --ignore-scripts
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
COPY --chown=node:node --from=build /app/node_modules node_modules

Expand Down

0 comments on commit b637451

Please sign in to comment.