add packagejson to the build

This commit is contained in:
Chris Grimmett 2024-03-29 21:01:24 -08:00
parent c291ef2fb4
commit 1d35f4b33d
2 changed files with 6 additions and 6 deletions

View File

@ -18,10 +18,10 @@ ENV NEXT_PUBLIC_SITE_URL ${NEXT_PUBLIC_SITE_URL}
ENV NEXT_PUBLIC_STRAPI_URL ${NEXT_PUBLIC_STRAPI_URL}
ENV NEXT_PUBLIC_UPPY_COMPANION_URL ${NEXT_PUBLIC_UPPY_COMPANION_URL}
ENV NEXT_TELEMETRY_DISABLED 1
COPY pnpm-lock.yaml package.json ./
COPY pnpm-lock.yaml ./
RUN pnpm fetch
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm install --offline
COPY ./packages/next /app
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm install --offline
FROM install AS dev

View File

@ -3,10 +3,10 @@
"version": "2.0.0",
"private": true,
"scripts": {
"dev": "pnpm next dev",
"build": "pnpm next build",
"start": "pnpm next start",
"lint": "pnpm next lint",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"preinstall": "npx only-allow pnpm"
},
"dependencies": {