docker: replace node base image with oven/bun
This commit is contained in:
parent
d06aaf7246
commit
b6853227be
1 changed files with 1 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# Node Alpine -- multi-arch (amd64 + arm64)
|
# Node Alpine -- multi-arch (amd64 + arm64)
|
||||||
FROM node:24.14-alpine AS builder
|
FROM oven/bun:1.3.10-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
@ -7,12 +7,6 @@ WORKDIR /app
|
||||||
RUN apk add --no-cache wget curl bash
|
RUN apk add --no-cache wget curl bash
|
||||||
RUN apk add --no-cache python3 make g++ && ln -sf python3 /usr/bin/python
|
RUN apk add --no-cache python3 make g++ && ln -sf python3 /usr/bin/python
|
||||||
|
|
||||||
# Install Bun
|
|
||||||
RUN curl -fsSL https://bun.sh/install | bash
|
|
||||||
|
|
||||||
# Add Bun to PATH so it can be used in subsequent steps
|
|
||||||
ENV PATH="/root/.bun/bin:${PATH}"
|
|
||||||
|
|
||||||
# Copy package files first for caching
|
# Copy package files first for caching
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue