ci(frontend): add pnpm to frontend dockerfile (#41)

This commit is contained in:
Luca Steeb
2024-01-01 21:07:36 +07:00
committed by GitHub
parent 2bd5677252
commit aedd328d0a
4 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -1,8 +1,11 @@
FROM node:18-alpine as build
WORKDIR /app
COPY ./frontend/app/package.json ./frontend/app/pnpm-lock.yaml ./
RUN pnpm install
RUN corepack pnpm --version
RUN corepack pnpm install
COPY ./frontend/app ./
RUN npm run build
+1
View File
@@ -3,6 +3,7 @@
"private": true,
"version": "0.0.0",
"type": "module",
"packageManager": "pnpm@8.10.0",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
+2 -1
View File
@@ -2,6 +2,7 @@
"name": "nextra-docs-template",
"version": "0.0.1",
"description": "Nextra docs template",
"packageManager": "pnpm@8.10.0",
"scripts": {
"dev": "next dev",
"build": "next build",
@@ -28,4 +29,4 @@
"@types/node": "18.11.10",
"typescript": "^4.9.3"
}
}
}