diff --git a/Dockerfile b/Dockerfile index e2eac11..9d27367 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,8 @@ -FROM node:lts-alpine AS deps -WORKDIR /app -COPY package.json pnpm-lock.yaml ./ -RUN npm install -g pnpm && pnpm install --frozen-lockfile - FROM node:lts-alpine AS builder RUN npm install -g pnpm WORKDIR /app -COPY --from=deps /app/node_modules ./node_modules +COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ +RUN pnpm install --frozen-lockfile COPY . . RUN pnpm build diff --git a/README.md b/README.md index ea54066..a3e5196 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # comingsoon -Coming soon placeholder for [fristy.net](https://fristy.net) - -My personal corner lives at [fristy.dev](https://fristy.dev). +Coming soon placeholder page. ## Stack @@ -15,9 +13,15 @@ pnpm install pnpm dev # http://localhost:3000 ``` +## Env + +| Variable | What it does | +| --------- | ------------------------------- | +| SITE_NAME | Kicker text (default: fristy.net) | + ## CI/CD -Pushes to `main` run format check, lint and build first. If those pass, the Docker image is built and pushed to the Gitea registry (`git.fristy.net/fristy/comingsoon:latest`). +Pushes to `main` run format check, lint and build first. If those pass, the Docker image is built and pushed to the registry. ## License diff --git a/app/page.tsx b/app/page.tsx index b16be41..03d2a21 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,8 +1,9 @@ export default function Home() { + const siteName = process.env.SITE_NAME ?? "fristy.net"; return (
-

{"// fristy.net"}

+

{`// ${siteName}`}

coming soon

diff --git a/package.json b/package.json index 5634224..b6b9f2d 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "comingsoon", "version": "0.1.0", "private": true, + "packageManager": "pnpm@11.2.2", "scripts": { "dev": "next dev", "build": "next build", diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..d86aa95 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,3 @@ +allowBuilds: + sharp: false + unrs-resolver: true