fix next build
ci / build (push) Failing after 2m1s Details

This commit is contained in:
CJ_Clippy 2024-07-14 10:00:08 -08:00
parent 01c414b6e4
commit 46fd8cf1e9
3 changed files with 41 additions and 15 deletions

View File

@ -38,15 +38,17 @@ CMD ["pnpm", "run", "dev"]
FROM install AS build FROM install AS build
RUN pnpm run -r build RUN pnpm run -r build
RUN pnpm --filter=next deploy --prod /prod/next # RUN pnpm --filter=next deploy --prod /prod/next ## using `pnpm deploy` doesn't work and I haven't worked out why
RUN echo "next we are next we are"
RUN ls -lash /app
FROM deps AS next FROM deps AS next
RUN apt-get update && apt-get install -y -qq --no-install-recommends dumb-init RUN apt-get update && apt-get install -y -qq --no-install-recommends dumb-init
COPY --chown=node:node --from=build /prod/next/package.json /prod/next/pnpm-lock.yaml ./ COPY --chown=node:node --from=build /app/packages/next/package.json /app/packages/next/pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
COPY --chown=node:node --from=build /prod/next/public ./public COPY --chown=node:node --from=build /app/packages/next/public ./public
COPY --chown=node:node --from=build /prod/next/.next/standalone ./ COPY --chown=node:node --from=build /app/packages/next/.next/standalone ./
COPY --chown=node:node --from=build /prod/next/.next/static ./.next/static COPY --chown=node:node --from=build /app/packages/next/.next/static ./.next/static
ENV TZ=UTC ENV TZ=UTC
ENV NODE_ENV=production ENV NODE_ENV=production
ENV HOSTNAME="0.0.0.0" ENV HOSTNAME="0.0.0.0"

View File

@ -70,7 +70,6 @@
"@types/node": "^20.14.9", "@types/node": "^20.14.9",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-config-next": "14.0.4", "eslint-config-next": "14.0.4",
"tsc": "^2.0.4",
"typescript": "5.3.3" "typescript": "5.3.3"
}, },
"packageManager": "pnpm@9.1.3" "packageManager": "pnpm@9.1.3"

View File

@ -183,13 +183,44 @@ importers:
eslint-config-next: eslint-config-next:
specifier: 14.0.4 specifier: 14.0.4
version: 14.0.4(eslint@8.57.0)(typescript@5.3.3) version: 14.0.4(eslint@8.57.0)(typescript@5.3.3)
tsc:
specifier: ^2.0.4
version: 2.0.4
typescript: typescript:
specifier: 5.3.3 specifier: 5.3.3
version: 5.3.3 version: 5.3.3
../..: {}
../archive: {}
../boop: {}
../bot: {}
../capture: {}
../image: {}
../infra: {}
../scout: {}
../storage: {}
../strapi: {}
../taco: {}
../temporal-worker: {}
../temporal-workflows: {}
../types: {}
../uppy: {}
../utils: {}
../video: {}
packages: packages:
'@ampproject/remapping@2.3.0': '@ampproject/remapping@2.3.0':
@ -2335,10 +2366,6 @@ packages:
peerDependencies: peerDependencies:
typescript: '>=4.2.0' typescript: '>=4.2.0'
tsc@2.0.4:
resolution: {integrity: sha512-fzoSieZI5KKJVBYGvwbVZs/J5za84f2lSTLPYf6AGiIf43tZ3GNrI1QzTLcjtyDDP4aLxd46RTZq1nQxe7+k5Q==}
hasBin: true
tsconfig-paths@3.15.0: tsconfig-paths@3.15.0:
resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==} resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}
@ -4900,8 +4927,6 @@ snapshots:
dependencies: dependencies:
typescript: 5.3.3 typescript: 5.3.3
tsc@2.0.4: {}
tsconfig-paths@3.15.0: tsconfig-paths@3.15.0:
dependencies: dependencies:
'@types/json5': 0.0.29 '@types/json5': 0.0.29