chore: add oci-build/Dockerfile + .dockerignore for CI image build #6
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/oci-build-dockerfile"
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?
The build-oci-image.yml workflow invokes
--file oci-build/Dockerfilebut the file did not exist; only the dev cargo-watch Dockerfile lived at the repo root, so CI failed withfailed to read dockerfile: open Dockerfile: no such file or directory(the dockerfile arg defaulted to the missing root path resolution because oci-build/Dockerfile was absent).Adds a multi-stage prod image: rust:1.93.1-alpine builder with musl-dev + perl + make + linux-headers (rusqlite bundled and ring need them), then alpine:3.22 runtime with ca-certificates and tini. Builds the meshcentral server and the meshctrl admin CLI, runs as the non-root vervain user, exposes the production HTTPS port 15443, and mounts /data so meshcentral-data + meshcentral-files survive container restarts.
Adds .dockerignore to keep the build context lean: excludes target/, .git/, .idea/, .claude/, .forgejo/, dev-only Dockerfile/compose.dev.yml/justfile, docs, and the meshcentral runtime data dirs.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com