mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-11-01 00:53:23 +01:00
build(deps): update to Next.js v16 + use image digests instead of tags
Ref: - https://docs.docker.com/dhi/core-concepts/digests/ - https://github.com/goldbergyoni/nodebestpractices/blob/master/sections/docker/image-tags.md - https://emmer.dev/blog/what-is-a-docker-digest/
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
FROM node:24.10.0-slim AS node-pnpm
|
||||
FROM node:24.10.0-slim@sha256:b8d2197aff9129d16c801a3e3e1b2a873c4946480f5a310f38056df2268c38d9 AS node-pnpm
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
RUN npm install --global corepack@0.34.0 && corepack enable
|
||||
RUN npm install --global corepack@0.34.1 && corepack enable
|
||||
ENV TURBO_TELEMETRY_DISABLED=1
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV DO_NOT_TRACK=1
|
||||
@@ -9,7 +9,7 @@ WORKDIR /usr/src/app
|
||||
|
||||
FROM node-pnpm AS builder
|
||||
COPY ./ ./
|
||||
RUN pnpm install --global turbo@2.5.8
|
||||
RUN pnpm install --global turbo@2.6.0
|
||||
RUN turbo prune @repo/website --docker
|
||||
|
||||
FROM node-pnpm AS installer
|
||||
|
||||
@@ -11,12 +11,12 @@ const nextConfig: NextConfig = {
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
experimental: {
|
||||
turbopackFileSystemCacheForDev: true,
|
||||
},
|
||||
}
|
||||
|
||||
const withNextIntl = createNextIntlPlugin({
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"#*": "./*"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "next dev --port 3000 --turbopack",
|
||||
"build": "next build --turbopack",
|
||||
"dev": "next dev --port 3000",
|
||||
"build": "next build",
|
||||
"start": "next start --port 3000",
|
||||
"typegen": "next typegen",
|
||||
"lint:eslint": "eslint app --max-warnings 0",
|
||||
|
||||
Reference in New Issue
Block a user