percher 1.4.0 → 1.4.1
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/LICENSE +0 -0
- package/THIRD-PARTY-NOTICES.txt +0 -0
- package/dist/bin/percher.d.ts +0 -0
- package/dist/bin/percher.d.ts.map +0 -0
- package/dist/bin/percher.js +858 -300
- package/dist/bin/percher.js.map +0 -0
- package/dist/package.json +5 -5
- package/dist/src/ci-env.d.ts +0 -0
- package/dist/src/ci-env.d.ts.map +0 -0
- package/dist/src/ci-env.js +0 -0
- package/dist/src/ci-env.js.map +0 -0
- package/dist/src/cli-utils.d.ts +0 -0
- package/dist/src/cli-utils.d.ts.map +0 -0
- package/dist/src/cli-utils.js +0 -0
- package/dist/src/cli-utils.js.map +0 -0
- package/dist/src/commands/account.d.ts +0 -0
- package/dist/src/commands/account.d.ts.map +0 -0
- package/dist/src/commands/account.js +0 -0
- package/dist/src/commands/account.js.map +0 -0
- package/dist/src/commands/admin.d.ts +0 -0
- package/dist/src/commands/admin.d.ts.map +0 -0
- package/dist/src/commands/admin.js +0 -0
- package/dist/src/commands/admin.js.map +0 -0
- package/dist/src/commands/analytics.d.ts +0 -0
- package/dist/src/commands/analytics.d.ts.map +0 -0
- package/dist/src/commands/analytics.js +0 -0
- package/dist/src/commands/analytics.js.map +0 -0
- package/dist/src/commands/apps.d.ts +0 -0
- package/dist/src/commands/apps.d.ts.map +0 -0
- package/dist/src/commands/apps.js +0 -0
- package/dist/src/commands/apps.js.map +0 -0
- package/dist/src/commands/auth.d.ts +0 -0
- package/dist/src/commands/auth.d.ts.map +0 -0
- package/dist/src/commands/auth.js +0 -0
- package/dist/src/commands/auth.js.map +0 -0
- package/dist/src/commands/data-records.d.ts +0 -0
- package/dist/src/commands/data-records.d.ts.map +0 -0
- package/dist/src/commands/data-records.js +0 -0
- package/dist/src/commands/data-records.js.map +0 -0
- package/dist/src/commands/data.d.ts +0 -0
- package/dist/src/commands/data.d.ts.map +0 -0
- package/dist/src/commands/data.js +0 -0
- package/dist/src/commands/data.js.map +0 -0
- package/dist/src/commands/deploys.d.ts +0 -0
- package/dist/src/commands/deploys.d.ts.map +0 -0
- package/dist/src/commands/deploys.js +0 -0
- package/dist/src/commands/deploys.js.map +0 -0
- package/dist/src/commands/env.d.ts +0 -0
- package/dist/src/commands/env.d.ts.map +0 -0
- package/dist/src/commands/env.js +0 -0
- package/dist/src/commands/env.js.map +0 -0
- package/dist/src/commands/export.d.ts +0 -0
- package/dist/src/commands/export.d.ts.map +0 -0
- package/dist/src/commands/export.js +0 -0
- package/dist/src/commands/export.js.map +0 -0
- package/dist/src/commands/github.d.ts +0 -0
- package/dist/src/commands/github.d.ts.map +0 -0
- package/dist/src/commands/github.js +0 -0
- package/dist/src/commands/github.js.map +0 -0
- package/dist/src/commands/hooks.d.ts +0 -0
- package/dist/src/commands/hooks.d.ts.map +0 -0
- package/dist/src/commands/hooks.js +0 -0
- package/dist/src/commands/hooks.js.map +0 -0
- package/dist/src/commands/migrate.d.ts +0 -0
- package/dist/src/commands/migrate.d.ts.map +0 -0
- package/dist/src/commands/migrate.js +0 -0
- package/dist/src/commands/migrate.js.map +0 -0
- package/dist/src/commands/sharing.d.ts +0 -0
- package/dist/src/commands/sharing.d.ts.map +0 -0
- package/dist/src/commands/sharing.js +0 -0
- package/dist/src/commands/sharing.js.map +0 -0
- package/dist/src/commands/status.d.ts +0 -0
- package/dist/src/commands/status.d.ts.map +0 -0
- package/dist/src/commands/status.js +0 -0
- package/dist/src/commands/status.js.map +0 -0
- package/dist/src/commands/telemetry.d.ts +0 -0
- package/dist/src/commands/telemetry.d.ts.map +0 -0
- package/dist/src/commands/telemetry.js +0 -0
- package/dist/src/commands/telemetry.js.map +0 -0
- package/dist/src/commands/token.d.ts +0 -0
- package/dist/src/commands/token.d.ts.map +0 -0
- package/dist/src/commands/token.js +0 -0
- package/dist/src/commands/token.js.map +0 -0
- package/dist/src/commands/transfers.d.ts +0 -0
- package/dist/src/commands/transfers.d.ts.map +0 -0
- package/dist/src/commands/transfers.js +0 -0
- package/dist/src/commands/transfers.js.map +0 -0
- package/dist/src/context.d.ts +0 -0
- package/dist/src/context.d.ts.map +0 -0
- package/dist/src/context.js +0 -0
- package/dist/src/context.js.map +0 -0
- package/dist/src/env-set-input.d.ts +0 -0
- package/dist/src/env-set-input.d.ts.map +0 -0
- package/dist/src/env-set-input.js +0 -0
- package/dist/src/env-set-input.js.map +0 -0
- package/dist/src/index.d.ts +0 -0
- package/dist/src/index.d.ts.map +0 -0
- package/dist/src/index.js +0 -0
- package/dist/src/index.js.map +0 -0
- package/dist/src/open.d.ts +0 -0
- package/dist/src/open.d.ts.map +0 -0
- package/dist/src/open.js +0 -0
- package/dist/src/open.js.map +0 -0
- package/dist/src/output.d.ts +0 -0
- package/dist/src/output.d.ts.map +0 -0
- package/dist/src/output.js +0 -0
- package/dist/src/output.js.map +0 -0
- package/dist/src/prompt-hidden.d.ts +0 -0
- package/dist/src/prompt-hidden.d.ts.map +0 -0
- package/dist/src/prompt-hidden.js +0 -0
- package/dist/src/prompt-hidden.js.map +0 -0
- package/dist/src/prompt.d.ts +0 -0
- package/dist/src/prompt.d.ts.map +0 -0
- package/dist/src/prompt.js +0 -0
- package/dist/src/prompt.js.map +0 -0
- package/dist/src/security-output.d.ts +0 -0
- package/dist/src/security-output.d.ts.map +0 -0
- package/dist/src/security-output.js +0 -0
- package/dist/src/security-output.js.map +0 -0
- package/dist/src/telemetry.d.ts +0 -0
- package/dist/src/telemetry.d.ts.map +0 -0
- package/dist/src/telemetry.js +0 -0
- package/dist/src/telemetry.js.map +0 -0
- package/dist/src/version-check.d.ts +0 -0
- package/dist/src/version-check.d.ts.map +0 -0
- package/dist/src/version-check.js +0 -0
- package/dist/src/version-check.js.map +0 -0
- package/dist/templates/LICENSE +0 -0
- package/dist/templates/astro/Caddyfile +5 -1
- package/dist/templates/astro/Dockerfile +14 -15
- package/dist/templates/astro/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/astro/astro.config.mjs +0 -0
- package/dist/templates/astro/package.json +0 -0
- package/dist/templates/astro/percher.toml +0 -0
- package/dist/templates/astro/src/pages/index.astro +0 -0
- package/dist/templates/bun/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/bun/index.ts +0 -0
- package/dist/templates/bun/package.json +0 -0
- package/dist/templates/bun/percher.toml +0 -0
- package/dist/templates/capsule/Caddyfile +0 -0
- package/dist/templates/capsule/Dockerfile +9 -14
- package/dist/templates/capsule/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/capsule/index.html +0 -0
- package/dist/templates/capsule/package.json +0 -0
- package/dist/templates/capsule/pb/schema.json +0 -0
- package/dist/templates/capsule/percher.toml +0 -0
- package/dist/templates/capsule/src/App.tsx +0 -0
- package/dist/templates/capsule/src/components/Auth.tsx +0 -0
- package/dist/templates/capsule/src/components/SignInWithGoogle.tsx +0 -0
- package/dist/templates/capsule/src/lib/ai-client.ts +0 -0
- package/dist/templates/capsule/src/lib/ai.ts +0 -0
- package/dist/templates/capsule/src/lib/db.ts +0 -0
- package/dist/templates/capsule/src/lib/realtime.ts +0 -0
- package/dist/templates/capsule/src/main.tsx +0 -0
- package/dist/templates/capsule/tsconfig.json +0 -0
- package/dist/templates/capsule/vite.config.ts +0 -0
- package/dist/templates/django/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/django/Procfile +0 -0
- package/dist/templates/django/app/__init__.py +0 -0
- package/dist/templates/django/app/settings.py +0 -0
- package/dist/templates/django/app/urls.py +0 -0
- package/dist/templates/django/app/wsgi.py +0 -0
- package/dist/templates/django/manage.py +0 -0
- package/dist/templates/django/percher.toml +0 -0
- package/dist/templates/django/requirements.txt +0 -0
- package/dist/templates/dotnet/Dockerfile +0 -0
- package/dist/templates/dotnet/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/dotnet/Program.cs +0 -0
- package/dist/templates/dotnet/app.csproj +0 -0
- package/dist/templates/dotnet/percher.toml +0 -0
- package/dist/templates/eleventy/.eleventy.js +0 -0
- package/dist/templates/eleventy/Caddyfile +5 -1
- package/dist/templates/eleventy/Dockerfile +14 -15
- package/dist/templates/eleventy/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/eleventy/package.json +0 -0
- package/dist/templates/eleventy/percher.toml +0 -0
- package/dist/templates/eleventy/src/_includes/base.njk +0 -0
- package/dist/templates/eleventy/src/assets/style.css +0 -0
- package/dist/templates/eleventy/src/index.md +0 -0
- package/dist/templates/elysia/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/elysia/index.ts +0 -0
- package/dist/templates/elysia/package.json +0 -0
- package/dist/templates/elysia/percher.toml +0 -0
- package/dist/templates/express/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/express/index.ts +0 -0
- package/dist/templates/express/package.json +0 -0
- package/dist/templates/express/percher.toml +0 -0
- package/dist/templates/fastify/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/fastify/index.ts +0 -0
- package/dist/templates/fastify/package.json +0 -0
- package/dist/templates/fastify/percher.toml +0 -0
- package/dist/templates/flask/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/flask/main.py +0 -0
- package/dist/templates/flask/percher.toml +0 -0
- package/dist/templates/flask/requirements.txt +0 -0
- package/dist/templates/go/Dockerfile +0 -0
- package/dist/templates/go/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/go/go.mod +0 -0
- package/dist/templates/go/main.go +0 -0
- package/dist/templates/go/percher.toml +0 -0
- package/dist/templates/hono/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/hono/index.ts +0 -0
- package/dist/templates/hono/package.json +0 -0
- package/dist/templates/hono/percher.toml +0 -0
- package/dist/templates/htmx/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/htmx/index.ts +0 -0
- package/dist/templates/htmx/package.json +0 -0
- package/dist/templates/htmx/percher.toml +0 -0
- package/dist/templates/hugo/Caddyfile +0 -0
- package/dist/templates/hugo/Dockerfile +9 -14
- package/dist/templates/hugo/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/hugo/content/_index.md +0 -0
- package/dist/templates/hugo/hugo.toml +0 -0
- package/dist/templates/hugo/layouts/index.html +0 -0
- package/dist/templates/hugo/percher.toml +0 -0
- package/dist/templates/java/Dockerfile +0 -0
- package/dist/templates/java/Main.java +0 -0
- package/dist/templates/java/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/java/percher.toml +0 -0
- package/dist/templates/laravel/Dockerfile +0 -0
- package/dist/templates/laravel/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/laravel/composer.json +0 -0
- package/dist/templates/laravel/percher.toml +0 -0
- package/dist/templates/laravel/public/index.php +0 -0
- package/dist/templates/nextjs/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/nextjs/app/api/health/route.ts +0 -0
- package/dist/templates/nextjs/app/layout.tsx +0 -0
- package/dist/templates/nextjs/app/page.tsx +0 -0
- package/dist/templates/nextjs/next.config.mjs +0 -0
- package/dist/templates/nextjs/package.json +0 -0
- package/dist/templates/nextjs/percher.toml +0 -0
- package/dist/templates/node/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/node/index.js +0 -0
- package/dist/templates/node/package.json +0 -0
- package/dist/templates/node/percher.toml +0 -0
- package/dist/templates/nuxt/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/nuxt/app.vue +0 -0
- package/dist/templates/nuxt/nuxt.config.ts +0 -0
- package/dist/templates/nuxt/package.json +0 -0
- package/dist/templates/nuxt/percher.toml +0 -0
- package/dist/templates/nuxt/server/api/health.ts +0 -0
- package/dist/templates/phoenix/Dockerfile +0 -0
- package/dist/templates/phoenix/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/phoenix/lib/application.ex +0 -0
- package/dist/templates/phoenix/lib/router.ex +0 -0
- package/dist/templates/phoenix/mix.exs +0 -0
- package/dist/templates/phoenix/percher.toml +0 -0
- package/dist/templates/preact/Caddyfile +6 -2
- package/dist/templates/preact/Dockerfile +14 -15
- package/dist/templates/preact/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/preact/index.html +0 -0
- package/dist/templates/preact/package.json +0 -0
- package/dist/templates/preact/percher.toml +0 -0
- package/dist/templates/preact/src/main.tsx +0 -0
- package/dist/templates/preact/vite.config.ts +0 -0
- package/dist/templates/python/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/python/main.py +0 -0
- package/dist/templates/python/nixpacks.toml +0 -0
- package/dist/templates/python/percher.toml +0 -0
- package/dist/templates/python/requirements.txt +0 -0
- package/dist/templates/rails/Dockerfile +0 -0
- package/dist/templates/rails/Gemfile +0 -0
- package/dist/templates/rails/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/rails/config.ru +0 -0
- package/dist/templates/rails/percher.toml +0 -0
- package/dist/templates/remix/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/remix/app/root.tsx +0 -0
- package/dist/templates/remix/app/routes/_index.tsx +0 -0
- package/dist/templates/remix/app/routes/health.tsx +0 -0
- package/dist/templates/remix/package.json +0 -0
- package/dist/templates/remix/percher.toml +0 -0
- package/dist/templates/remix/vite.config.ts +0 -0
- package/dist/templates/rust/Cargo.toml +0 -0
- package/dist/templates/rust/Dockerfile +0 -0
- package/dist/templates/rust/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/rust/percher.toml +0 -0
- package/dist/templates/rust/src/main.rs +0 -0
- package/dist/templates/solid/Caddyfile +6 -2
- package/dist/templates/solid/Dockerfile +14 -15
- package/dist/templates/solid/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/solid/index.html +0 -0
- package/dist/templates/solid/package.json +0 -0
- package/dist/templates/solid/percher.toml +0 -0
- package/dist/templates/solid/src/main.tsx +0 -0
- package/dist/templates/solid/vite.config.ts +0 -0
- package/dist/templates/static/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/static/index.html +0 -0
- package/dist/templates/static/percher.toml +0 -0
- package/dist/templates/static/style.css +0 -0
- package/dist/templates/sveltekit/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/sveltekit/package.json +0 -0
- package/dist/templates/sveltekit/percher.toml +0 -0
- package/dist/templates/sveltekit/src/app.html +0 -0
- package/dist/templates/sveltekit/src/routes/+page.svelte +0 -0
- package/dist/templates/sveltekit/src/routes/health/+server.ts +0 -0
- package/dist/templates/sveltekit/svelte.config.js +0 -0
- package/dist/templates/sveltekit/vite.config.js +0 -0
- package/dist/templates/vite-react/Caddyfile +6 -2
- package/dist/templates/vite-react/Dockerfile +14 -15
- package/dist/templates/vite-react/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/vite-react/index.html +0 -0
- package/dist/templates/vite-react/package.json +0 -0
- package/dist/templates/vite-react/percher.toml +0 -0
- package/dist/templates/vite-react/src/main.tsx +0 -0
- package/dist/templates/vite-react/vite.config.ts +0 -0
- package/dist/templates/vite-vue/Caddyfile +6 -2
- package/dist/templates/vite-vue/Dockerfile +14 -15
- package/dist/templates/vite-vue/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/vite-vue/index.html +0 -0
- package/dist/templates/vite-vue/package.json +0 -0
- package/dist/templates/vite-vue/percher.toml +0 -0
- package/dist/templates/vite-vue/src/main.ts +0 -0
- package/dist/templates/vite-vue/vite.config.ts +0 -0
- package/package.json +5 -5
|
@@ -10,27 +10,26 @@ WORKDIR /app
|
|
|
10
10
|
COPY . .
|
|
11
11
|
RUN bun install && bun run build
|
|
12
12
|
|
|
13
|
+
# Preserve build inputs for deployment; only this filtered copy reaches /srv.
|
|
14
|
+
FROM build AS static-content
|
|
15
|
+
RUN bun -e 'const fs=require("node:fs"),path=require("node:path");const root=fs.realpathSync(process.argv[1]),dir=fs.realpathSync(process.argv[2]),dest=process.argv[3];const deny=new RegExp("(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))","i");const reserved=p=>deny.test("/"+p.split(path.sep).join("/"));if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content");if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists");fs.cpSync(dir,dest,{recursive:true,filter:p=>{if(reserved(path.relative(dir,p))||reserved(path.relative(root,p)))return false;if(fs.lstatSync(p).isSymbolicLink())throw Error("Static content cannot contain symlinks");return true}})' '/app' '/app/dist' '/percher-static-content'
|
|
16
|
+
|
|
13
17
|
# --- Serve stage: minimal Caddy image --------------------------------
|
|
14
18
|
# Build pinned Caddy source with refreshed security modules. The scratch
|
|
15
19
|
# runtime carries no shell, package manager, or file capabilities and listens
|
|
16
20
|
# on the unprivileged port :8080.
|
|
17
21
|
FROM golang:1.26.10-alpine3.23@sha256:0525c952defebc693cdaf62cdf43afa32be5a7f377e99260642ea19c240c708e AS caddy-source
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
RUN go mod download github.com/caddyserver/caddy/v2@v2.11.4 \
|
|
21
|
-
&& cp -R /go/pkg/mod/github.com/caddyserver/caddy/v2@v2.11.4 /src \
|
|
22
|
+
RUN go mod download github.com/caddyserver/caddy/v2@v2.11.7 \
|
|
23
|
+
&& cp -R /go/pkg/mod/github.com/caddyserver/caddy/v2@v2.11.7 /src \
|
|
22
24
|
&& chmod -R u+w /src
|
|
23
25
|
WORKDIR /src
|
|
24
|
-
RUN
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
go.opentelemetry.io/otel/
|
|
29
|
-
go.opentelemetry.io/otel/exporters/otlp/
|
|
30
|
-
go.opentelemetry.io/otel/exporters/otlp/
|
|
31
|
-
go.opentelemetry.io/otel/exporters/stdout/stdoutlog@v0.21.0 \
|
|
32
|
-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc@v1.45.0 \
|
|
33
|
-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp@v1.45.0 \
|
|
26
|
+
RUN go get github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \
|
|
27
|
+
go.opentelemetry.io/otel@v1.46.0 go.opentelemetry.io/otel/sdk/log@v0.22.0 \
|
|
28
|
+
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc@v0.22.0 \
|
|
29
|
+
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp@v0.22.0 \
|
|
30
|
+
go.opentelemetry.io/otel/exporters/stdout/stdoutlog@v0.22.0 \
|
|
31
|
+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc@v1.46.0 \
|
|
32
|
+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp@v1.46.0 \
|
|
34
33
|
golang.org/x/crypto@v0.57.0 golang.org/x/net@v0.60.0 \
|
|
35
34
|
golang.org/x/text@v0.42.0 google.golang.org/grpc@v1.83.2 \
|
|
36
35
|
&& go mod tidy \
|
|
@@ -46,7 +45,7 @@ COPY --from=caddy-source /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-ce
|
|
|
46
45
|
COPY --from=caddy-source /out/caddy /usr/bin/caddy
|
|
47
46
|
COPY --from=caddy-source /out/percher-healthcheck /usr/bin/percher-healthcheck
|
|
48
47
|
COPY Caddyfile /etc/caddy/Caddyfile
|
|
49
|
-
COPY --from=
|
|
48
|
+
COPY --from=static-content /percher-static-content /srv
|
|
50
49
|
LABEL dev.percher.health-client="static-http-v1"
|
|
51
50
|
# HOME points at the writable tmpfs so non-root Caddy can persist its
|
|
52
51
|
# XDG state (storage-clean lock, config autosave) under Percher's
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
bind 0.0.0.0
|
|
3
3
|
root * /srv
|
|
4
4
|
encode gzip zstd
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
route {
|
|
6
|
+
@percher_platform path_regexp percher_platform (?i)(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))
|
|
7
|
+
respond @percher_platform 404
|
|
8
|
+
try_files {path} /index.html
|
|
9
|
+
file_server
|
|
10
|
+
}
|
|
7
11
|
}
|
|
@@ -10,27 +10,26 @@ WORKDIR /app
|
|
|
10
10
|
COPY . .
|
|
11
11
|
RUN bun install && bun run build
|
|
12
12
|
|
|
13
|
+
# Preserve build inputs for deployment; only this filtered copy reaches /srv.
|
|
14
|
+
FROM build AS static-content
|
|
15
|
+
RUN bun -e 'const fs=require("node:fs"),path=require("node:path");const root=fs.realpathSync(process.argv[1]),dir=fs.realpathSync(process.argv[2]),dest=process.argv[3];const deny=new RegExp("(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))","i");const reserved=p=>deny.test("/"+p.split(path.sep).join("/"));if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content");if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists");fs.cpSync(dir,dest,{recursive:true,filter:p=>{if(reserved(path.relative(dir,p))||reserved(path.relative(root,p)))return false;if(fs.lstatSync(p).isSymbolicLink())throw Error("Static content cannot contain symlinks");return true}})' '/app' '/app/dist' '/percher-static-content'
|
|
16
|
+
|
|
13
17
|
# --- Serve stage: minimal Caddy image --------------------------------
|
|
14
18
|
# Build pinned Caddy source with refreshed security modules. The scratch
|
|
15
19
|
# runtime carries no shell, package manager, or file capabilities and listens
|
|
16
20
|
# on the unprivileged port :8080.
|
|
17
21
|
FROM golang:1.26.10-alpine3.23@sha256:0525c952defebc693cdaf62cdf43afa32be5a7f377e99260642ea19c240c708e AS caddy-source
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
RUN go mod download github.com/caddyserver/caddy/v2@v2.11.4 \
|
|
21
|
-
&& cp -R /go/pkg/mod/github.com/caddyserver/caddy/v2@v2.11.4 /src \
|
|
22
|
+
RUN go mod download github.com/caddyserver/caddy/v2@v2.11.7 \
|
|
23
|
+
&& cp -R /go/pkg/mod/github.com/caddyserver/caddy/v2@v2.11.7 /src \
|
|
22
24
|
&& chmod -R u+w /src
|
|
23
25
|
WORKDIR /src
|
|
24
|
-
RUN
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
go.opentelemetry.io/otel/
|
|
29
|
-
go.opentelemetry.io/otel/exporters/otlp/
|
|
30
|
-
go.opentelemetry.io/otel/exporters/otlp/
|
|
31
|
-
go.opentelemetry.io/otel/exporters/stdout/stdoutlog@v0.21.0 \
|
|
32
|
-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc@v1.45.0 \
|
|
33
|
-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp@v1.45.0 \
|
|
26
|
+
RUN go get github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \
|
|
27
|
+
go.opentelemetry.io/otel@v1.46.0 go.opentelemetry.io/otel/sdk/log@v0.22.0 \
|
|
28
|
+
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc@v0.22.0 \
|
|
29
|
+
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp@v0.22.0 \
|
|
30
|
+
go.opentelemetry.io/otel/exporters/stdout/stdoutlog@v0.22.0 \
|
|
31
|
+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc@v1.46.0 \
|
|
32
|
+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp@v1.46.0 \
|
|
34
33
|
golang.org/x/crypto@v0.57.0 golang.org/x/net@v0.60.0 \
|
|
35
34
|
golang.org/x/text@v0.42.0 google.golang.org/grpc@v1.83.2 \
|
|
36
35
|
&& go mod tidy \
|
|
@@ -46,7 +45,7 @@ COPY --from=caddy-source /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-ce
|
|
|
46
45
|
COPY --from=caddy-source /out/caddy /usr/bin/caddy
|
|
47
46
|
COPY --from=caddy-source /out/percher-healthcheck /usr/bin/percher-healthcheck
|
|
48
47
|
COPY Caddyfile /etc/caddy/Caddyfile
|
|
49
|
-
COPY --from=
|
|
48
|
+
COPY --from=static-content /percher-static-content /srv
|
|
50
49
|
LABEL dev.percher.health-client="static-http-v1"
|
|
51
50
|
# HOME points at the writable tmpfs so non-root Caddy can persist its
|
|
52
51
|
# XDG state (storage-clean lock, config autosave) under Percher's
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "percher",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "CLI for the Percher hosting platform — publish apps with one command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"typecheck": "tsc --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@percher/shared": "^1.3.
|
|
32
|
-
"@percher/client": "^1.4.
|
|
33
|
-
"@percher/core": "^1.4.
|
|
34
|
-
"@percher/toml": "^1.0.
|
|
31
|
+
"@percher/shared": "^1.3.1",
|
|
32
|
+
"@percher/client": "^1.4.1",
|
|
33
|
+
"@percher/core": "^1.4.1",
|
|
34
|
+
"@percher/toml": "^1.0.6",
|
|
35
35
|
"cac": "^7.0.0",
|
|
36
36
|
"picocolors": "^1.1.1"
|
|
37
37
|
},
|