add packagejson to the build
This commit is contained in:
parent
c291ef2fb4
commit
1d35f4b33d
|
@ -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
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue