diff --git a/Dockerfile b/Dockerfile index aa62dba..4129504 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,8 +19,8 @@ ENV CI=true COPY pnpm-lock.yaml pnpm-workspace.yaml package.json .npmrc* ./ COPY apps/web/package.json ./apps/web/package.json # Copy sibling monorepo for linked dependencies (cloned during CI) -# Placing it at root to match the ../../../at-mintel/ links in package.json -COPY _at-mintel* /at-mintel/ +# Placing it inside /app so relative links like ../../_at-mintel resolve correctly! +COPY _at-mintel* /app/_at-mintel/ # Install dependencies with cache mount and dynamic .npmrc (High Fidelity pattern) @@ -30,7 +30,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ echo "@mintel:registry=https://npm.infra.mintel.me" > .npmrc && \ echo "//npm.infra.mintel.me/:_authToken=\"\${NPM_TOKEN}\"" >> .npmrc && \ echo "always-auth=true" >> .npmrc && \ - cd /at-mintel && pnpm install --no-frozen-lockfile && pnpm build && \ + cd /app/_at-mintel && pnpm install --no-frozen-lockfile && pnpm build && \ cd /app && pnpm install --no-frozen-lockfile && \ rm .npmrc