Skip to content

feat: [INFRA] Harden Dockerfile for production - #771

Merged
jahrulezfrancis merged 3 commits into
Batch-Pay:mainfrom
SYLVIANNORUKA:fix/dockerfile-multi-stage
Aug 30, 2026
Merged

feat: [INFRA] Harden Dockerfile for production#771
jahrulezfrancis merged 3 commits into
Batch-Pay:mainfrom
SYLVIANNORUKA:fix/dockerfile-multi-stage

Conversation

@SYLVIANNORUKA

@SYLVIANNORUKA SYLVIANNORUKA commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

[INFRA] Harden Dockerfile for production (multi-stage, non-root, native deps, healthcheck)
closes #739

[INFRA] Harden Dockerfile for production

tags: infra docker production

Summary

Hardens the Dockerfile for production: multi-stage build, non-root runtime user, isolated native-dependency compilation, and a container-level healthcheck.

Motivation

The current image ships the full build toolchain, dev dependencies, and runs as root — bigger attack surface than needed, larger image size, and no way for the orchestrator to know if the app is actually healthy vs. just "the process is up."

Changes

1. Multi-stage build

Three stages: deps (installs all deps + native build toolchain) → build (compiles, then npm prune --omit=dev) → runtime (only node_modules,

@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

@SYLVIANNORUKA is attempting to deploy a commit to the indexhtml's projects Team on Vercel.

A member of the Team first needs to authorize it.

@jahrulezfrancis

Copy link
Copy Markdown
Collaborator

@SYLVIANNORUKA Kindly provide a more detailed PR description for your implementation, it helps with backlog!

@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stellar-batch-pay Ready Ready Preview Aug 30, 2026 11:12pm

@jahrulezfrancis

Copy link
Copy Markdown
Collaborator

@SYLVIANNORUKA Thanks for your contributions. LGTM!!!

@jahrulezfrancis
jahrulezfrancis merged commit 9ebcc26 into Batch-Pay:main Aug 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[INFRA] Harden Dockerfile for production (multi-stage, non-root, native deps, healthcheck)

2 participants