Add Dockerfile and Makefile docker targets for containerized deployment #23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 imagedocker-run— run container locallydocker-push— push to Forgejo registrydocker-login— authenticate with registryAlso add
.dockerignoreto keep the build context small.Testing
make docker-buildproduces a ~38MB imagemake docker-runstarts the container, serves both API and frontendcurl http://localhost:11001/api/healthreturns healthy status