mirror of
https://github.com/HugeFrog24/nini-artgallery.git
synced 2026-06-30 04:57:12 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f347a6d40e | |||
| bd616e392f |
Vendored
+1
@@ -3,5 +3,6 @@
|
||||
"messages",
|
||||
"src/i18n"
|
||||
],
|
||||
"snyk.advanced.organization": "512ef4a1-6034-4537-a391-9692d282122a",
|
||||
"snyk.advanced.autoSelectOrganization": true
|
||||
}
|
||||
+20
-33
@@ -1,59 +1,43 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
# ============================================
|
||||
# Stage 1: Dependencies
|
||||
# ============================================
|
||||
FROM --platform=$BUILDPLATFORM node:22-alpine3.22 AS deps
|
||||
|
||||
FROM --platform=$BUILDPLATFORM node:20-alpine AS deps
|
||||
WORKDIR /app
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV COREPACK_DEFAULT_TO_LATEST=0
|
||||
# Install pnpm
|
||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
RUN corepack enable \
|
||||
&& corepack prepare pnpm@11.1.2 --activate \
|
||||
&& pnpm install --frozen-lockfile
|
||||
|
||||
# ============================================
|
||||
# Stage 2: Builder
|
||||
# ============================================
|
||||
FROM --platform=$BUILDPLATFORM node:22-alpine3.22 AS builder
|
||||
|
||||
FROM --platform=$BUILDPLATFORM node:20-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV COREPACK_DEFAULT_TO_LATEST=0
|
||||
|
||||
RUN corepack enable \
|
||||
&& corepack prepare pnpm@11.1.2 --activate
|
||||
# Install pnpm
|
||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
|
||||
COPY . .
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN pnpm build
|
||||
RUN pnpm run build
|
||||
|
||||
# ============================================
|
||||
# Stage 3: Runner
|
||||
# ============================================
|
||||
FROM node:22-alpine3.22 AS runner
|
||||
|
||||
FROM node:20-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV PORT=3000
|
||||
ENV HOSTNAME=0.0.0.0
|
||||
|
||||
RUN addgroup -S nodejs -g 1001 \
|
||||
&& adduser -S nextjs -u 1001
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
|
||||
# Copy only necessary files
|
||||
COPY --from=builder /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
|
||||
|
||||
@@ -61,4 +45,7 @@ USER nextjs
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
ENV PORT=3000
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
+23
-23
@@ -2,7 +2,7 @@
|
||||
"name": "nini-artgallery",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@11.1.2",
|
||||
"packageManager": "pnpm@10.29.3",
|
||||
"scripts": {
|
||||
"dev": "next dev --turbopack",
|
||||
"build": "next build",
|
||||
@@ -11,37 +11,37 @@
|
||||
"lint:fix": "eslint --fix ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-sdk/react": "^3.0.186",
|
||||
"@ai-sdk/react": "^3.0.87",
|
||||
"@heroicons/react": "^2.2.0",
|
||||
"@openrouter/ai-sdk-provider": "^2.9.0",
|
||||
"@openrouter/ai-sdk-provider": "^2.2.3",
|
||||
"@types/jsonwebtoken": "^9.0.10",
|
||||
"@types/nodemailer": "^8.0.0",
|
||||
"ai": "^6.0.184",
|
||||
"@types/nodemailer": "^7.0.9",
|
||||
"ai": "^6.0.85",
|
||||
"jsonwebtoken": "^9.0.3",
|
||||
"next": "16.2.6",
|
||||
"next-intl": "^4.12.0",
|
||||
"nodemailer": "^8.0.7",
|
||||
"react": "19.2.6",
|
||||
"react-dom": "19.2.6",
|
||||
"next": "16.1.6",
|
||||
"next-intl": "^4.8.2",
|
||||
"nodemailer": "^8.0.1",
|
||||
"react": "19.2.4",
|
||||
"react-dom": "19.2.4",
|
||||
"server-only": "^0.0.1",
|
||||
"zod": "^4.4.3"
|
||||
"zod": "^4.3.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3.3.5",
|
||||
"@eslint/js": "^9.39.4",
|
||||
"@tailwindcss/postcss": "^4.3.0",
|
||||
"@types/node": "^25.8.0",
|
||||
"@eslint/eslintrc": "^3.3.3",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@tailwindcss/postcss": "^4.1.18",
|
||||
"@types/node": "^25.2.3",
|
||||
"@types/react": "19.2.14",
|
||||
"@types/react-dom": "19.2.3",
|
||||
"@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",
|
||||
"@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",
|
||||
"postcss-load-config": "^6.0.1",
|
||||
"tailwindcss": "^4.3.0",
|
||||
"typescript": "^6.0.3"
|
||||
"tailwindcss": "^4.1.18",
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
|
||||
Generated
+952
-950
File diff suppressed because it is too large
Load Diff
+1
-8
@@ -1,11 +1,4 @@
|
||||
allowBuilds:
|
||||
'@parcel/watcher': true
|
||||
'@swc/core': true
|
||||
sharp: true
|
||||
unrs-resolver: true
|
||||
onlyBuiltDependencies:
|
||||
- "@parcel/watcher"
|
||||
- "@swc/core"
|
||||
- "@tailwindcss/oxide"
|
||||
- sharp
|
||||
- unrs-resolver
|
||||
- "@tailwindcss/oxide"
|
||||
|
||||
Reference in New Issue
Block a user