mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-03-04 12:18:58 +00:00
taco
This commit is contained in:
@@ -11,13 +11,14 @@ WORKDIR /app
|
|||||||
# Copy package.json and pnpm-lock.yaml before other files
|
# Copy package.json and pnpm-lock.yaml before other files
|
||||||
# Utilise Docker cache to save re-installing dependencies if unchanged
|
# Utilise Docker cache to save re-installing dependencies if unchanged
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
|
COPY pnpm-lock.yaml ./
|
||||||
RUN echo "node-linker=hoisted" >> .npmrc
|
RUN echo "node-linker=hoisted" >> .npmrc
|
||||||
|
|
||||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||||
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
||||||
|
|
||||||
# Install dependencies
|
# 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
|
# Build the Next.js app
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
@@ -53,13 +54,14 @@ ENV NODE_ENV production
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder /app/.next/standalone ./
|
COPY --from=builder /app/apps/web/.next/standalone ./
|
||||||
COPY --from=builder /app/.next/static ./.next/static
|
COPY --from=builder /app/apps/web/.next/static ./apps/web/.next/static
|
||||||
COPY --from=builder /app/public/ ./public/
|
COPY --from=builder /app/apps/web/public/ ./apps/web/public/
|
||||||
|
|
||||||
# Expose the listening port
|
# Expose the listening port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
ENV PORT 3000
|
ENV PORT 3000
|
||||||
|
|
||||||
# Run node to launch the app
|
# Run node to launch the app
|
||||||
CMD ["node", "server.js"]
|
CMD ["node", "apps/web/server.js"]
|
||||||
|
|
||||||
|
|||||||
2
turbo-nextjs/apps/docs/next-env.d.ts
vendored
2
turbo-nextjs/apps/docs/next-env.d.ts
vendored
@@ -2,4 +2,4 @@
|
|||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// 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.
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
transpilePackages: ["@repo/ui"],
|
transpilePackages: ["@repo/ui"],
|
||||||
|
output: 'standalone',
|
||||||
};
|
};
|
||||||
|
|||||||
2
turbo-nextjs/apps/web/next-env.d.ts
vendored
2
turbo-nextjs/apps/web/next-env.d.ts
vendored
@@ -2,4 +2,4 @@
|
|||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// 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.
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
transpilePackages: ["@repo/ui"],
|
transpilePackages: ["@repo/ui"],
|
||||||
|
output: 'standalone',
|
||||||
};
|
};
|
||||||
|
|||||||
8707
turbo-nextjs/package-lock.json
generated
8707
turbo-nextjs/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "turbo build",
|
"build": "turbo build",
|
||||||
"dev": "turbo dev",
|
"dev": "turbo dev",
|
||||||
|
"start": "node apps/web/.next/standalone/apps/web/server.js",
|
||||||
"lint": "turbo lint",
|
"lint": "turbo lint",
|
||||||
"format": "prettier --write \"**/*.{ts,tsx,md}\""
|
"format": "prettier --write \"**/*.{ts,tsx,md}\""
|
||||||
},
|
},
|
||||||
@@ -16,7 +17,7 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"packageManager": "npm@9.8.1",
|
"packageManager": "pnpm@8.15.0",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"apps/*",
|
"apps/*",
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|||||||
5264
turbo-nextjs/pnpm-lock.yaml
generated
Normal file
5264
turbo-nextjs/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
3
turbo-nextjs/pnpm-workspace.yaml
Normal file
3
turbo-nextjs/pnpm-workspace.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
packages:
|
||||||
|
- 'apps/*'
|
||||||
|
- 'packages/*'
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://turbo.build/schema.json",
|
"$schema": "https://turbo.build/schema.json",
|
||||||
"globalDependencies": ["**/.env.*local"],
|
"globalDependencies": ["**/.env.*local"],
|
||||||
"pipeline": {
|
"tasks": {
|
||||||
"build": {
|
"build": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": [".next/**", "!.next/cache/**"]
|
"outputs": [".next/**", "!.next/cache/**"]
|
||||||
|
|||||||
Reference in New Issue
Block a user