Update Dockerfile to install Bun and dependencies

Added system dependencies for Bun and updated installation steps.
This commit is contained in:
PinkFloyd1213 2026-02-20 16:04:38 +01:00 committed by GitHub
parent b7e6572743
commit 0d3b9f11ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,19 +3,24 @@ FROM node:lts-alpine
WORKDIR /app
# wget is needed for Docker healthcheck
RUN apk add --no-cache wget
# Install system dependencies required for Bun and Neutralino
RUN apk add --no-cache wget curl bash
# 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.json package-lock.json ./
# Install dependencies
# Install dependencies (Node)
RUN npm install
# Copy the rest of the project
COPY . .
# Build the project
# Build the project (Bun is now available for "bun x neu build")
RUN npm run build
# Expose Vite preview port