aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorVaiTon2023-04-29 23:29:26 +0000
committerVaiTon2023-04-29 23:29:26 +0000
commit5064ceeca3c478386e99557d66e9cfaa829d5407 (patch)
treeccbfa3b3f1741de1f68b2617b498cd4a0bdda896 /Dockerfile
parentdb851ed4284174c4a759045d89ed6a2a774c0192 (diff)
Use pnpm for frontend
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 5c0882e..1af5fa0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,12 +24,17 @@ RUN export VERSION=$(git describe --tags --abbrev=0) && \
# Build frontend via yarn
FROM node:16 as FRONTEND_BUILDER
+ENV PNPM_VERSION 8.3.1
+RUN npm install -g pnpm@${PNPM_VERSION}
WORKDIR /caronte-frontend
-COPY ./frontend/package.json ./frontend/yarn.lock ./
-RUN yarn install --frozen-lockfile
+
+# pnpm fetch does require only lockfile
+COPY ./frontend/pnpm-lock.yaml ./
+RUN pnpm fetch --prod
+
COPY ./frontend ./
-RUN yarn install && yarn build --production=true
+RUN pnpm install && pnpm build
# LAST STAGE