-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from GTD-IT-XXIV/gillbert/migrate-trpc-11
Migrate to tRPC v11 and Next 14.1.4
- Loading branch information
Showing
31 changed files
with
736 additions
and
798 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,10 +36,6 @@ RUN corepack enable pnpm && pnpm build | |
FROM base AS runner | ||
WORKDIR /app | ||
|
||
ENV NODE_ENV production | ||
# Uncomment the following line in case you want to disable telemetry during runtime. | ||
# ENV NEXT_TELEMETRY_DISABLED 1 | ||
|
||
RUN mkdir .next | ||
|
||
# Automatically leverage output traces to reduce image size | ||
|
@@ -49,26 +45,18 @@ COPY --from=builder /app/.next/static ./.next/static | |
COPY --from=builder /app/publi[c] ./public | ||
COPY --from=builder /app/.env* ./ | ||
|
||
# Copy sharp optionalDependencies due to @vercel/nft bug: https://github.com/lovell/sharp/issues/3967 | ||
# For linux/arm64 platform | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[1] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[1] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[2] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[2] ./node_modules/.pnpm/@[email protected] | ||
# For linux/amd64 platform | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[1] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[1] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[2] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[2] ./node_modules/.pnpm/@[email protected] | ||
|
||
FROM gcr.io/distroless/nodejs20-debian11 | ||
COPY --from=runner --chown=nonroot:nonroot /app /app | ||
WORKDIR /app | ||
|
||
COPY --from=runner --chown=nonroot:nonroot /app ./ | ||
|
||
USER nonroot | ||
|
||
EXPOSE 3000 | ||
|
||
ENV NODE_ENV production | ||
# Uncomment the following line in case you want to disable telemetry during runtime. | ||
# ENV NEXT_TELEMETRY_DISABLED 1 | ||
ENV PORT 3000 | ||
# set hostname to localhost | ||
ENV HOSTNAME "0.0.0.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,18 +48,6 @@ COPY --from=builder /app/.next/static ./.next/static | |
COPY --from=builder /app/publi[c] ./public | ||
COPY --from=builder /app/.env* ./ | ||
|
||
# Copy sharp optionalDependencies due to @vercel/nft bug: https://github.com/lovell/sharp/issues/3967 | ||
# For linux/arm64 platform | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[1] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[1] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[2] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[2] ./node_modules/.pnpm/@[email protected] | ||
# For linux/amd64 platform | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[1] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[1] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[2] ./node_modules/.pnpm/@[email protected] | ||
COPY --from=deps /app/node_modules/.pnpm/@[email protected].[2] ./node_modules/.pnpm/@[email protected] | ||
|
||
FROM gcr.io/distroless/nodejs20-debian11 | ||
COPY --from=runner --chown=nonroot:nonroot /app /app | ||
WORKDIR /app | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.