let's try with npm instead of bun...

This commit is contained in:
BlackSigkill 2026-02-06 18:16:10 +01:00
parent 4460b5abbf
commit 82aefc9bfb
3 changed files with 17 additions and 14 deletions

View file

@ -1,23 +1,25 @@
# Use Bun on Alpine # Node Alpine -- multi-arch (amd64 + arm64)
FROM oven/bun:1 FROM node:lts-alpine
# Set working directory
WORKDIR /app WORKDIR /app
# Copy package files first for caching # wget is needed for Docker healthcheck
COPY package.json bun.lock ./ RUN apk add --no-cache wget
# Install all dependencies (including devDeps) # Copy package files first for caching
RUN bun install COPY package.json ./
# Install dependencies
RUN npm install
# Copy the rest of the project # Copy the rest of the project
COPY . . COPY . .
# Build the project # Build the project
RUN bun run build RUN npm run build
# Expose Vite preview port # Expose Vite preview port
EXPOSE 4173 EXPOSE 4173
# Run the built project # Run the built project
CMD ["bun", "run", "preview", "--", "--host", "0.0.0.0"] CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0"]

View file

@ -1,15 +1,16 @@
# Development Dockerfile for hot-reloading # Development Dockerfile for hot-reloading
FROM oven/bun:1 # Node Alpine -- multi-arch (amd64 + arm64)
FROM node:lts-alpine
WORKDIR /app WORKDIR /app
# Copy package files first for caching # Copy package files first for caching
COPY package.json bun.lock ./ COPY package.json ./
# Install dependencies # Install dependencies
RUN bun install RUN npm install
# Expose Vite dev server port # Expose Vite dev server port
EXPOSE 5173 EXPOSE 5173
CMD ["bun", "run", "dev", "--", "--host", "0.0.0.0"] CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]

View file

@ -57,7 +57,7 @@ services:
volumes: volumes:
- .:/app - .:/app
- /app/node_modules - /app/node_modules
command: bun run dev -- --host 0.0.0.0 command: npm run dev -- --host 0.0.0.0
networks: networks:
- monochrome-network - monochrome-network