fix: 👷 Correctly add Node during Docker build

This commit is contained in:
Jesse Wierzbinski 2024-07-11 13:34:24 +02:00
parent 65abaa9c7b
commit 74b194b1f4
No known key found for this signature in database

View file

@ -1,10 +1,8 @@
FROM oven/bun:1.1.18-alpine AS base # Node is required for building the project
FROM imbios/bun-node:1.1.18-20-alpine AS base
RUN apk add --no-cache libstdc++ RUN apk add --no-cache libstdc++
# Add Node.js
COPY --from=node:22-alpine /usr/local/bin/node /usr/local/bin/node
# Install dependencies into temp directory # Install dependencies into temp directory
# This will cache them and speed up future builds # This will cache them and speed up future builds
FROM base AS install FROM base AS install