Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

cobalt-web

ARM64 Docker image of the official imputnet/cobalt web UI. The official Cobalt image is API-only; this repo builds the static frontend and serves it with Caddy.

Image

ghcr.io/lrnd1/cobalt-web:latest
ghcr.io/lrnd1/cobalt-web:src-<12-char-sha>
  • Platform: linux/arm64 only
  • Listens on port 80 (HTTP). Put your own reverse proxy in front for TLS.
  • Rebuilds on GitHub Actions when the upstream web/ tree changes (daily cron + manual dispatch).

Run

services:
  cobalt-web:
    image: ghcr.io/lrnd1/cobalt-web:latest
    container_name: cobalt-web
    restart: unless-stopped
    ports:
      - "127.0.0.1:8787:80"
    environment:
      WEB_HOST: cobalt.example.com
      WEB_DEFAULT_API: https://api.example.com/
Variable Required Example
WEB_HOST yes cobalt.example.com (hostname only)
WEB_DEFAULT_API yes https://api.example.com/ (include scheme; trailing / is added if missing)

Change env → restart the container. No image rebuild.

You still need a Cobalt API container (ghcr.io/imputnet/cobalt) and API_URL on that service set to the same public API URL the browser uses.

What the build does

  1. Clones imputnet/cobalt at the latest commit that touched web/.
  2. Builds the SvelteKit app with placeholders (__WEB_HOST__, __WEB_DEFAULT_API__).
  3. Copies the static files into caddy:2-alpine.
  4. On start, /entrypoint.sh (generated in the image) substitutes the placeholders from environment: and starts Caddy.

Skip logic: if src-<sha> already exists on GHCR, the scheduled workflow does not rebuild. workflow_dispatch and Dockerfile changes always build.

Actions

Workflow: .github/workflows/build.yml
Schedule: 0 20 * * *

License

  • This repo’s Dockerfile / workflow: use as you like.
  • Cobalt web source: CC-BY-NC-SA-4.0.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages