@gusto/create-baerly-storage 0.5.0 → 0.7.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/dist/THIRD-PARTY-LICENSES.txt +204 -0
- package/dist/index.js +1537 -145
- package/dist/index.js.map +1 -1
- package/dist/templates/addons/docker/Dockerfile +13 -11
- package/dist/templates/minimal-cloudflare/AGENTS.md +77 -399
- package/dist/templates/minimal-cloudflare/README.md +33 -97
- package/dist/templates/minimal-cloudflare/package.json +12 -9
- package/dist/templates/minimal-cloudflare/pnpm-workspace.yaml +13 -7
- package/dist/templates/minimal-cloudflare/tsconfig.app.json +2 -3
- package/dist/templates/minimal-cloudflare/tsconfig.worker.json +2 -3
- package/dist/templates/minimal-cloudflare/vitest.config.ts +1 -1
- package/dist/templates/minimal-cloudflare/wrangler.jsonc +4 -2
- package/dist/templates/minimal-node/AGENTS.md +80 -380
- package/dist/templates/minimal-node/README.md +37 -135
- package/dist/templates/minimal-node/package.json +11 -9
- package/dist/templates/minimal-node/pnpm-workspace.yaml +14 -9
- package/dist/templates/minimal-node/tsconfig.app.json +2 -3
- package/dist/templates/minimal-node/tsconfig.server.json +2 -3
- package/dist/templates/react-cloudflare/AGENTS.md +101 -444
- package/dist/templates/react-cloudflare/README.md +14 -54
- package/dist/templates/react-cloudflare/package.json +18 -15
- package/dist/templates/react-cloudflare/pnpm-workspace.yaml +13 -7
- package/dist/templates/react-cloudflare/tsconfig.app.json +2 -3
- package/dist/templates/react-cloudflare/tsconfig.worker.json +2 -3
- package/dist/templates/react-cloudflare/vitest.config.ts +1 -1
- package/dist/templates/react-cloudflare/wrangler.jsonc +4 -2
- package/dist/templates/react-node/AGENTS.md +108 -474
- package/dist/templates/react-node/README.md +35 -125
- package/dist/templates/react-node/package.json +16 -14
- package/dist/templates/react-node/pnpm-workspace.yaml +14 -9
- package/dist/templates/react-node/tsconfig.app.json +2 -3
- package/dist/templates/react-node/tsconfig.server.json +2 -3
- package/package.json +7 -7
- package/dist/templates/minimal-cloudflare/uint8array-base64.d.ts +0 -16
- package/dist/templates/minimal-node/uint8array-base64.d.ts +0 -16
- package/dist/templates/react-cloudflare/uint8array-base64.d.ts +0 -16
- package/dist/templates/react-node/uint8array-base64.d.ts +0 -16
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Distroless final stage, non-root user, HEALTHCHECK via a Node
|
|
3
3
|
# script (distroless ships no wget/curl).
|
|
4
4
|
#
|
|
5
|
-
# Runtime path: node
|
|
5
|
+
# Runtime path: node src/server/index.ts (Node strips types natively).
|
|
6
6
|
# No `tsc` emit at runtime — the server runs straight off TS source.
|
|
7
7
|
# The SPA bundle (vite build) lives under dist/client/ and is served
|
|
8
8
|
# by baerlyNode({ webRoot }).
|
|
@@ -20,15 +20,16 @@
|
|
|
20
20
|
# replace the tag with `@sha256:...`.
|
|
21
21
|
|
|
22
22
|
# ---- Build stage ----
|
|
23
|
-
FROM node:
|
|
23
|
+
FROM node:26-trixie-slim AS build
|
|
24
24
|
WORKDIR /app
|
|
25
25
|
|
|
26
|
-
RUN corepack enable
|
|
27
|
-
# pnpm version is driven by `packageManager` in package.json (pnpm 11.1.2).
|
|
28
|
-
|
|
29
26
|
# Manifest first for layer-cache hits.
|
|
30
27
|
COPY pnpm-lock.yaml package.json ./
|
|
31
28
|
|
|
29
|
+
# Install the exact pnpm that `packageManager` in package.json names.
|
|
30
|
+
# Node 25+ no longer bundles Corepack, so npm installs it instead.
|
|
31
|
+
RUN npm install --global "$(node -p 'require("./package.json").packageManager')"
|
|
32
|
+
|
|
32
33
|
RUN pnpm install --frozen-lockfile
|
|
33
34
|
|
|
34
35
|
# Source + build the SPA.
|
|
@@ -39,7 +40,7 @@ RUN pnpm build
|
|
|
39
40
|
RUN pnpm install --prod --frozen-lockfile
|
|
40
41
|
|
|
41
42
|
# ---- Runtime stage ----
|
|
42
|
-
FROM gcr.io/distroless/
|
|
43
|
+
FROM gcr.io/distroless/nodejs26-debian13 AS runtime
|
|
43
44
|
WORKDIR /app
|
|
44
45
|
|
|
45
46
|
# Distroless's `nonroot` user is UID 65532. We run as that.
|
|
@@ -68,10 +69,11 @@ ENV NODE_ENV=production
|
|
|
68
69
|
ENV PORT=8080
|
|
69
70
|
EXPOSE 8080
|
|
70
71
|
|
|
71
|
-
# Node-script HEALTHCHECK — distroless ships no wget/curl.
|
|
72
|
+
# Node-script HEALTHCHECK — distroless ships no wget/curl. Distroless
|
|
73
|
+
# keeps node at /nodejs/bin/node, off PATH, so name it absolutely.
|
|
72
74
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
73
|
-
CMD ["node", "healthcheck.js"]
|
|
75
|
+
CMD ["/nodejs/bin/node", "healthcheck.js"]
|
|
74
76
|
|
|
75
|
-
# Distroless's entrypoint IS node;
|
|
76
|
-
#
|
|
77
|
-
|
|
77
|
+
# Distroless's entrypoint IS /nodejs/bin/node; CMD supplies its args.
|
|
78
|
+
# Node strips TypeScript types by default (since 23.6); no flag needed.
|
|
79
|
+
CMD ["src/server/index.ts"]
|