Add Dockerfile and Makefile docker targets for containerized deployment #23

Closed
opened 2026-02-28 02:39:18 +00:00 by mik-tf · 0 comments
Member

Problem

The portal has no Docker support, making it difficult to deploy to TFGrid VMs or K8s clusters.

Solution

Add multi-stage Dockerfile (rust:latest builder → debian:bookworm-slim runtime) plus Makefile targets:

  • docker-build — build image
  • docker-run — run container locally
  • docker-push — push to Forgejo registry
  • docker-login — authenticate with registry

Also add .dockerignore to keep the build context small.

Testing

  • make docker-build produces a ~38MB image
  • make docker-run starts the container, serves both API and frontend
  • curl http://localhost:11001/api/health returns healthy status
## Problem The portal has no Docker support, making it difficult to deploy to TFGrid VMs or K8s clusters. ## Solution Add multi-stage Dockerfile (rust:latest builder → debian:bookworm-slim runtime) plus Makefile targets: - `docker-build` — build image - `docker-run` — run container locally - `docker-push` — push to Forgejo registry - `docker-login` — authenticate with registry Also add `.dockerignore` to keep the build context small. ## Testing - `make docker-build` produces a ~38MB image - `make docker-run` starts the container, serves both API and frontend - `curl http://localhost:11001/api/health` returns healthy status
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mycelium/www_migrate_mycelium#23
No description provided.