Merge pull request #219 from PinkFloyd1213/main
feat: update Dockerfile to include Bun and system dependencies
This commit is contained in:
commit
b0b1ee0360
1 changed files with 9 additions and 4 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -3,19 +3,24 @@ FROM node:lts-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# wget is needed for Docker healthcheck
|
# Install system dependencies required for Bun and Neutralino
|
||||||
RUN apk add --no-cache wget
|
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 files first for caching
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies (Node)
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copy the rest of the project
|
# Copy the rest of the project
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the project
|
# Build the project (Bun is now available for "bun x neu build")
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Expose Vite preview port
|
# Expose Vite preview port
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue