This commit is contained in:
Andras Bacsai
2025-11-10 22:02:05 +01:00
parent 993e4ca085
commit 205a335ca6
10 changed files with 5281 additions and 8716 deletions

View File

@@ -11,13 +11,14 @@ WORKDIR /app
# Copy package.json and pnpm-lock.yaml before other files
# Utilise Docker cache to save re-installing dependencies if unchanged
COPY package.json ./
COPY pnpm-lock.yaml ./
RUN echo "node-linker=hoisted" >> .npmrc
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_SKIP_DOWNLOAD=true
# Install dependencies
RUN --mount=type=cache,id=pnpm,target=/pnpm/store npm install
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
# Build the Next.js app
FROM base AS builder
@@ -53,13 +54,14 @@ ENV NODE_ENV production
WORKDIR /app
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public/ ./public/
COPY --from=builder /app/apps/web/.next/standalone ./
COPY --from=builder /app/apps/web/.next/static ./apps/web/.next/static
COPY --from=builder /app/apps/web/public/ ./apps/web/public/
# Expose the listening port
EXPOSE 3000
ENV PORT 3000
# Run node to launch the app
CMD ["node", "server.js"]
CMD ["node", "apps/web/server.js"]

View File

@@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

View File

@@ -1,4 +1,5 @@
/** @type {import('next').NextConfig} */
module.exports = {
transpilePackages: ["@repo/ui"],
output: 'standalone',
};

View File

@@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

View File

@@ -1,4 +1,5 @@
/** @type {import('next').NextConfig} */
module.exports = {
transpilePackages: ["@repo/ui"],
output: 'standalone',
};

File diff suppressed because it is too large Load Diff

View File

@@ -4,6 +4,7 @@
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"start": "node apps/web/.next/standalone/apps/web/server.js",
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
@@ -16,7 +17,7 @@
"engines": {
"node": ">=18"
},
"packageManager": "npm@9.8.1",
"packageManager": "pnpm@8.15.0",
"workspaces": [
"apps/*",
"packages/*"

5264
turbo-nextjs/pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,3 @@
packages:
- 'apps/*'
- 'packages/*'

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]