aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-17 11:08:57 -0700
committerAdam Soltys <[email protected]>2022-10-17 11:11:23 -0700
commita1c26ed733a1b6bab6768311377be9d8690e1fb1 (patch)
treef381a0251e69f017f065ced9e7bd47b6cb016808
parent44bee42517e70dce187534dac676f52c7b1f327f (diff)
downloadcoinos-ui-a1c26ed733a1b6bab6768311377be9d8690e1fb1.tar.gz
coinos-ui-a1c26ed733a1b6bab6768311377be9d8690e1fb1.zip
persist pnpm cache during build
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index f61d1034..ed7c9613 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,8 +6,8 @@ ENV NODE_ENV $NODE_ENV
RUN npm i -g pnpm
WORKDIR /app
-COPY package.json .
-RUN NODE_ENV=development pnpm i
+ADD package.json .
+RUN --mount=type=cache,target=/root/.local/share/pnpm/store NODE_ENV=development pnpm i
COPY . .
RUN pnpm build