Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
.svelte-kit
build
.git
.env
.env.*
!.env.example
npm-debug.log*
*.log
.DS_Store
58 changes: 0 additions & 58 deletions .github/workflows/azure-static-web-apps-polite-mud-07f02c503.yml

This file was deleted.

25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# syntax=docker/dockerfile:1

FROM node:22-alpine AS build
WORKDIR /app

COPY package.json package-lock.json ./
RUN npm ci

COPY . .
RUN npm run build

FROM node:22-alpine AS runtime
WORKDIR /app
ENV NODE_ENV=production

COPY package.json package-lock.json ./
RUN npm ci --omit=dev --ignore-scripts

COPY --from=build /app/build ./build

ENV PORT=3000
ENV HOST=0.0.0.0
EXPOSE 3000

CMD ["node", "build"]
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# AS208437 Website

Sito istituzionale di HyperBit SRLs riscritto in SvelteKit.
Public network-operations page for HyperBit SRLs (AS208437): routing references, peering policy
and announced prefixes. Built with SvelteKit, matching the visual language and technical stack
of the main [HyperBit website](https://hyperbit.it) (Svelte 5, Tailwind CSS 4, Poppins /
JetBrains Mono), statically prerendered and served via a Node adapter, deployed as a Docker
container (Coolify).

## Sviluppo

Expand All @@ -17,12 +21,25 @@ Il sito sarà disponibile su `http://localhost:5173`.
npm run check
npm run build
npm run preview
npm run start # avvia il server prodotto da `build/` (node build)
```

## Deploy

Il sito è pacchettizzato con il `Dockerfile` incluso (multi-stage, `node:22-alpine`) e pensato per
essere deployato su Coolify come app Docker, esattamente come `Website-New`:

```bash
docker build -t as208437-web .
docker run -p 3000:3000 as208437-web
```

## Struttura

- `src/routes/+page.svelte`: homepage
- `src/routes/peering-policy/+page.svelte`: peering policy
- `src/lib/site.ts`: contenuti condivisi del sito
- `src/app.css`: stile globale
- `static/`: asset pubblici serviti direttamente
- `src/routes/+page.svelte`: homepage (network overview, stats, upstreams, prefixes, resources)
- `src/routes/peering-policy/+page.svelte`: peering policy e presenza IXP
- `src/lib/data/network.ts`: dati tecnici della rete (ASN, upstream, peering, prefissi, policy)
- `src/lib/site.ts`: link di risorse derivati dai dati di rete
- `src/lib/components/`: `SiteNav`, `SiteFooter`
- `src/app.css`: design system condiviso (dark theme, griglia, tipografia tecnica)
- `static/`: asset pubblici serviti direttamente (logo, favicon, geofeed)
Loading