diff --git a/Dockerfile b/Dockerfile index 9191172..415e43a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,11 @@ LABEL stage="build-local-testing" WORKDIR /app -# Copy package.json and package-lock.json (or yarn.lock) +# Copy root package.json/lockfile plus workspace manifests so npm can +# resolve the @ttrpg/shared and server workspace links during install. COPY package*.json ./ +COPY shared/package.json ./shared/ +COPY server/package.json ./server/ # Install dependencies using the lock file for consistency RUN npm install