Updated Dockerfile

This commit is contained in:
Alex Rennie-Lis
2026-06-28 23:16:27 +01:00
parent d344059d06
commit db0a5696d6

View File

@@ -2,13 +2,13 @@
FROM node:20-alpine AS builder
WORKDIR /app
# Copy dependency configurations
COPY package*.json ./
# Copy ONLY package.json to avoid pulling in local lockfile restrictions
COPY package.json ./
# Install all dependencies (including devDependencies needed for building)
RUN npm ci
# Fresh install inside Alpine ensures correct native platform binaries (Rolldown Rust bindings)
RUN npm install
# Copy the rest of the application source code
# Now copy the rest of your repository source files
COPY . .
# Build the production application