FROM node:14-bullseye # Build dependencies using npm ci; this Node version is chosen to better align with node-sass v4.14.x WORKDIR /app # Install dependencies (prefer npm ci for exact lockfile versions) COPY package.json package-lock.json ./ RUN npm ci # Copy the rest of the source code COPY . ./ # Build the project from source into dist/ RUN npm run build # Default command CMD ["bash"]