Update docker/haste/Dockerfile
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
colin 2025-03-02 12:48:03 -05:00
parent 98fb3a5588
commit 3f2167eb1e
1 changed files with 3 additions and 3 deletions

View File

@ -2,15 +2,15 @@ FROM node:18-alpine as builder
WORKDIR /app WORKDIR /app
# Copy package files first for better caching # Copy package files first - this is the key fix
COPY package*.json ./ COPY package.json package-lock.json ./
# Clean npm cache and install dependencies with specific flags to avoid errors # Clean npm cache and install dependencies with specific flags to avoid errors
RUN npm cache clean --force && \ RUN npm cache clean --force && \
npm install --production --no-optional && \ npm install --production --no-optional && \
npm install mocha npm install mocha
# Copy the rest of the application # Copy the rest of the application AFTER installing dependencies
COPY . . COPY . .
# Make sure app.sh is executable # Make sure app.sh is executable