[PR #1366] Cobalt Web image Dockerfile #1388

Open
opened 2025-11-09 10:12:00 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/1366
Author: @jo-chemla
Created: 6/25/2025
Status: 🔄 Open

Base: mainHead: web-docker-image


📝 Commits (2)

  • 782045d Cobalt Web image Dockerfile
  • c381863 Cannot comment @hyperdefined

📊 Changes

4 files changed (+54 additions, -0 deletions)

View changed files

web/Dockerfile (+33 -0)
web/docker-entrypoint.sh (+12 -0)
web/pnpm-workspace.yaml (+4 -0)
web/static/runtime-config.js (+5 -0)

📄 Description

Build and run image with

docker build -f web/Dockerfile -t cobalt-web .
docker run -e WEB_DEFAULT_API="https://real.api.endpoint" -e WEB_HOST="http://abc"  -e WEB_PLAUSIBLE_HOST="def" -p 800:80 cobalt-web

Currently, vite build still uses process.env env-vars at build time, so the docker container is not using those defined via placeholders in runtime-config.js


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/1366 **Author:** [@jo-chemla](https://github.com/jo-chemla) **Created:** 6/25/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `web-docker-image` --- ### 📝 Commits (2) - [`782045d`](https://github.com/imputnet/cobalt/commit/782045dd824bc01b7a07a8bbcc0f5b02954cf241) Cobalt Web image Dockerfile - [`c381863`](https://github.com/imputnet/cobalt/commit/c3818639a04d5e0933a878929bcfa8000318a6e2) Cannot comment @hyperdefined ### 📊 Changes **4 files changed** (+54 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `web/Dockerfile` (+33 -0) ➕ `web/docker-entrypoint.sh` (+12 -0) ➕ `web/pnpm-workspace.yaml` (+4 -0) ➕ `web/static/runtime-config.js` (+5 -0) </details> ### 📄 Description Build and run image with ``` docker build -f web/Dockerfile -t cobalt-web . docker run -e WEB_DEFAULT_API="https://real.api.endpoint" -e WEB_HOST="http://abc" -e WEB_PLAUSIBLE_HOST="def" -p 800:80 cobalt-web ``` Currently, vite build still uses process.env env-vars at build time, so the docker container is not using those defined via placeholders in `runtime-config.js` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-09 10:12:00 -06:00
Sign in to join this conversation.