From 3f2167eb1e163e23d3ce9d9d4def513e949869ab Mon Sep 17 00:00:00 2001 From: colin Date: Sun, 2 Mar 2025 12:48:03 -0500 Subject: [PATCH] Update docker/haste/Dockerfile --- docker/haste/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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