Skip to content

Commit

Permalink
Temp fix for nodejs multi-arch builds - reverting to nodejs 18 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinc committed Dec 22, 2023
1 parent 3027709 commit ec4dac6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nodejs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# BSB Build
FROM betterweb/node:20 as builder
# Using 18 until nodejs fixes a bug with v20 - https://github.com/nodejs/docker-node/issues/1829
FROM betterweb/node:18 as builder

ARG BSB_VERSION=0.0.0

Expand All @@ -14,7 +15,7 @@ ADD src/ /home/bsb/src/
RUN npm ci && npm version $BSB_VERSION --allow-same-version --no-git-tag-version && npm run build-release

# Final image
FROM betterweb/node:20
FROM betterweb/node:18

COPY --from=builder /home/bsb/lib /home/bsb/lib
COPY --from=builder /home/bsb/node_modules /home/bsb/node_modules
Expand Down

0 comments on commit ec4dac6

Please sign in to comment.