create-nuxt-base 2.3.1 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.4.0](https://github.com/lenneTech/nuxt-base-starter/compare/v2.3.1...v2.4.0) (2026-03-16)
6
+
7
+
8
+ ### Features
9
+
10
+ * add production default dockerfile ([e338c93](https://github.com/lenneTech/nuxt-base-starter/commit/e338c9363a348c1a63d40a71301240c8e8478835))
11
+
5
12
  ### [2.3.1](https://github.com/lenneTech/nuxt-base-starter/compare/v2.3.0...v2.3.1) (2026-03-15)
6
13
 
7
14
  ## [2.3.0](https://github.com/lenneTech/nuxt-base-starter/compare/v2.2.8...v2.3.0) (2026-03-09)
@@ -0,0 +1,39 @@
1
+ # Stage 1: Install dependencies
2
+ FROM node:22-alpine@sha256:8094c002d08262dba12645a3b4a15cd6cd627d30bc782f53229a2ec13ee22a00 AS deps
3
+ WORKDIR /app
4
+ RUN corepack enable
5
+
6
+ # Copy workspace configuration
7
+ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
8
+
9
+ # Copy all project manifests (required for pnpm workspace resolution)
10
+ COPY projects/api/package.json ./projects/api/
11
+ COPY projects/app/package.json ./projects/app/
12
+
13
+ # Install dependencies (--ignore-scripts prevents husky/simple-git-hooks errors in Docker)
14
+ RUN pnpm install --frozen-lockfile --ignore-scripts
15
+
16
+ # Stage 2: Build
17
+ FROM node:22-alpine@sha256:8094c002d08262dba12645a3b4a15cd6cd627d30bc782f53229a2ec13ee22a00 AS builder
18
+ WORKDIR /app
19
+ RUN corepack enable
20
+
21
+ COPY --from=deps /app ./
22
+ COPY projects/app/ ./projects/app/
23
+
24
+ RUN pnpm --filter app run build
25
+
26
+ # Stage 3: Production runner
27
+ FROM node:22-alpine@sha256:8094c002d08262dba12645a3b4a15cd6cd627d30bc782f53229a2ec13ee22a00 AS runner
28
+ WORKDIR /app
29
+ ENV NODE_ENV=production
30
+
31
+ # Non-root user
32
+ RUN addgroup -g 1001 -S nodejs && adduser -S nodejs -u 1001
33
+
34
+ # Nuxt output is self-contained (Nitro bundles all dependencies)
35
+ COPY --from=builder --chown=nodejs:nodejs /app/projects/app/.output ./.output
36
+
37
+ USER nodejs
38
+ EXPOSE 3000
39
+ CMD ["node", ".output/server/index.mjs"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nuxt-base",
3
- "version": "2.3.1",
3
+ "version": "2.4.0",
4
4
  "description": "Starter to generate a configured environment with VueJS, Nuxt, Tailwind, Linting, Unit Tests, Playwright etc.",
5
5
  "license": "MIT",
6
6
  "author": "lenne.Tech GmbH",