Compare commits

..

3 Commits

Author SHA1 Message Date
HugeFrog24 c07a3c0cc0 Docker 2026-05-17 08:11:11 +02:00
HugeFrog24 ea921ba5d5 Dockerfile 2026-05-17 07:59:54 +02:00
HugeFrog24 b1f70688cb Lint and version bump 2026-05-17 07:57:41 +02:00
5 changed files with 1013 additions and 996 deletions
-1
View File
@@ -3,6 +3,5 @@
"messages",
"src/i18n"
],
"snyk.advanced.organization": "512ef4a1-6034-4537-a391-9692d282122a",
"snyk.advanced.autoSelectOrganization": true
}
+32 -19
View File
@@ -1,43 +1,59 @@
# syntax=docker/dockerfile:1
# ============================================
# Stage 1: Dependencies
FROM --platform=$BUILDPLATFORM node:20-alpine AS deps
# ============================================
FROM --platform=$BUILDPLATFORM node:22-alpine3.22 AS deps
WORKDIR /app
# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
ENV NEXT_TELEMETRY_DISABLED=1
ENV COREPACK_DEFAULT_TO_LATEST=0
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
RUN corepack enable \
&& corepack prepare pnpm@11.1.2 --activate \
&& pnpm install --frozen-lockfile
# ============================================
# Stage 2: Builder
FROM --platform=$BUILDPLATFORM node:20-alpine AS builder
# ============================================
FROM --platform=$BUILDPLATFORM node:22-alpine3.22 AS builder
WORKDIR /app
# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
ENV NEXT_TELEMETRY_DISABLED=1
ENV COREPACK_DEFAULT_TO_LATEST=0
RUN corepack enable \
&& corepack prepare pnpm@11.1.2 --activate
COPY --from=deps /app/node_modules ./node_modules
COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
RUN pnpm run build
RUN pnpm build
# ============================================
# Stage 3: Runner
FROM node:20-alpine AS runner
# ============================================
FROM node:22-alpine3.22 AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
RUN addgroup -S nodejs -g 1001 \
&& adduser -S nextjs -u 1001
# Copy only necessary files
COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
# Copy tenant data and message files (not included in standalone bundle)
COPY --from=builder --chown=nextjs:nodejs /app/data ./data
COPY --from=builder --chown=nextjs:nodejs /app/messages ./messages
@@ -45,7 +61,4 @@ USER nextjs
EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
CMD ["node", "server.js"]
+23 -23
View File
@@ -2,7 +2,7 @@
"name": "nini-artgallery",
"version": "0.1.0",
"private": true,
"packageManager": "pnpm@10.29.3",
"packageManager": "pnpm@11.1.2",
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
@@ -11,37 +11,37 @@
"lint:fix": "eslint --fix ."
},
"dependencies": {
"@ai-sdk/react": "^3.0.87",
"@ai-sdk/react": "^3.0.186",
"@heroicons/react": "^2.2.0",
"@openrouter/ai-sdk-provider": "^2.2.3",
"@openrouter/ai-sdk-provider": "^2.9.0",
"@types/jsonwebtoken": "^9.0.10",
"@types/nodemailer": "^7.0.9",
"ai": "^6.0.85",
"@types/nodemailer": "^8.0.0",
"ai": "^6.0.184",
"jsonwebtoken": "^9.0.3",
"next": "16.1.6",
"next-intl": "^4.8.2",
"nodemailer": "^8.0.1",
"react": "19.2.4",
"react-dom": "19.2.4",
"next": "16.2.6",
"next-intl": "^4.12.0",
"nodemailer": "^8.0.7",
"react": "19.2.6",
"react-dom": "19.2.6",
"server-only": "^0.0.1",
"zod": "^4.3.6"
"zod": "^4.4.3"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^10.0.1",
"@tailwindcss/postcss": "^4.1.18",
"@types/node": "^25.2.3",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^9.39.4",
"@tailwindcss/postcss": "^4.3.0",
"@types/node": "^25.8.0",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@typescript-eslint/eslint-plugin": "^8.55.0",
"@typescript-eslint/parser": "^8.55.0",
"eslint": "^10.0.0",
"eslint-config-next": "16.1.6",
"globals": "^17.3.0",
"postcss": "^8.5.6",
"@typescript-eslint/eslint-plugin": "^8.59.3",
"@typescript-eslint/parser": "^8.59.3",
"eslint": "^9.39.4",
"eslint-config-next": "16.2.6",
"globals": "^17.6.0",
"postcss": "^8.5.14",
"postcss-load-config": "^6.0.1",
"tailwindcss": "^4.1.18",
"typescript": "^5.9.3"
"tailwindcss": "^4.3.0",
"typescript": "^6.0.3"
},
"pnpm": {
"overrides": {
+949 -951
View File
File diff suppressed because it is too large Load Diff
+8 -1
View File
@@ -1,4 +1,11 @@
allowBuilds:
'@parcel/watcher': true
'@swc/core': true
sharp: true
unrs-resolver: true
onlyBuiltDependencies:
- "@tailwindcss/oxide"
- "@parcel/watcher"
- "@swc/core"
- sharp
- unrs-resolver
- "@tailwindcss/oxide"