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