diff --git a/.devcontainer/base/Dockerfile b/.devcontainer/base/Dockerfile index 2f1ec4d4e4..96253fa4d0 100644 --- a/.devcontainer/base/Dockerfile +++ b/.devcontainer/base/Dockerfile @@ -5,8 +5,8 @@ ENV SHELL=/bin/bash \ LANG=C.UTF-8 \ LC_ALL=C.UTF-8 \ CI=1 \ - PNPM_HOME=/home/node/.local/share/pnpm \ - PATH=/home/node/.local/share/pnpm:$PATH + PNPM_HOME=/tmp/pnpm-store \ + PATH=/tmp/pnpm-store:$PATH RUN apt-get update && \ apt-get --no-install-recommends install -y \ @@ -14,5 +14,6 @@ RUN apt-get update && \ apt-get clean && \ corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@9.1.2 --activate -RUN --mount=type=cache,id=pnpm,target=/home/node/.local/share/pnpm/store \ - pnpm install --frozen-lockfile --recursive \ No newline at end of file +COPY pnpm-lock.yaml pnpm-workspace.yaml ./ +RUN --mount=type=cache,id=pnpm,target=/tmp/pnpm-store \ + pnpm install --frozen-lockfile --recursive