Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bcrypt crashes the app when used with node:alpine image #79

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARG NODE_VERSION=22.13.1
# you create/set another WORKDIR, it will ALWAYS be owned by the 'root', hence
# the build will always be failing with permissions error.

FROM node:${NODE_VERSION} AS base
FROM node:${NODE_VERSION}-slim AS base
# If you use the alpine image, download Bash package > install Bash (to be able to execute scripts) >
# > remove the downloaded package to free up space (Bash remains installed)
# RUN apk add --upgrade --no-cache bash
Expand Down Expand Up @@ -57,7 +57,7 @@ RUN npm ci --omit=dev
# Stage 3: create final production image ready to be deployed - copy only the
# required files from stages above.

FROM node:${NODE_VERSION} AS production
FROM node:${NODE_VERSION}-slim AS production
USER node
WORKDIR /home/node
COPY --from=production_base /home/node ./
Expand Down