---
title: "How Medplum Secured Their Healthcare Platform with Docker Hardened Images (DHI)"
description: "Medplum, an open-source headless EHR serving 20+ million patients, replaced node:24-slim and nginx-unprivileged base images with Docker Hardened Images."
url: "https://swe.quest/articles/how-medplum-secured-their-healthcare-platform-with-docker-hardened-images-dhi-d732260a4f9831e5"
canonical: "https://www.docker.com/blog/medplum-healthcare-docker-hardened-images/"
source: "Docker"
published: "2026-02-19"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["containers","supply-chain-security","ci-cd"]
---

# How Medplum Secured Their Healthcare Platform with Docker Hardened Images (DHI)

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-02-19, 10 min read, Case study. Original: [https://www.docker.com/blog/medplum-healthcare-docker-hardened-images/](https://www.docker.com/blog/medplum-healthcare-docker-hardened-images/)

## Summary

Medplum, an open-source headless EHR serving 20+ million patients, replaced node:24-slim and nginx-unprivileged base images with Docker Hardened Images. The change touched 54 lines across 5 files and needed no application or infrastructure changes. It removed manual non-root user setup, chown steps and USER directives, and adopted a multi-stage build that installs dependencies on the dhi.io/node:24-dev variant and ships on the minimal, shell-less dhi.io/node:24 runtime. An earlier attempt with Google distroless images was abandoned because image sizes and build times grew and multi-arch support for native dependencies was a concern. The main payoff was less CVE "vulnerability noise" to triage during enterprise security audits.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- Dockerfiles
- multi-stage Docker builds ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- CVE scanning ([easy posts on Vulnerability research](https://swe.quest/tags/vulnerability-research.md?difficulty=easy))

## Keywords

Docker Hardened Images, Medplum, distroless, GitHub Actions, AWS Fargate, FHIR, HIPAA

## Related posts

- [Making the Most of Your Docker Hardened Images Enterprise Trial – Part 1](https://swe.quest/articles/making-the-most-of-your-docker-hardened-images-enterprise-trial-part-1-61a4db14eac1477b.md): Docker · 2025-11-14 · Medium · 10 min read · Containers, Supply chain security, Security
  Docker Hardened Images (DHI) strip base images down to the minimum runtime, removing package managers, shells and utilities while keeping distro compatibility.
- [Making the Most of Your Docker Hardened Images Enterprise Trial – Part 3](https://swe.quest/articles/making-the-most-of-your-docker-hardened-images-enterprise-trial-part-3-074fb74ac78adf47.md): Docker · 2026-01-25 · Medium · 8 min read · Containers, Supply chain security, Security
  Docker Hardened Images (DHI) ship without package managers, shells or utilities, so adding agents, CA certificates or libraries needs one of two patterns.
- [Hardened Images Are Free. Now What?](https://swe.quest/articles/hardened-images-are-free-now-what-129617cf36f8913b.md): Docker · 2026-02-10 · Medium · 6 min read · Supply chain security, Containers, Security
  Docker Hardened Images (DHI), now free across 1,000+ images, establish a security "waterline": Docker owns vulnerability remediation for the base layers it hardens, while teams own application code and dependencies above it.
- [Docker Hardened Images enhanced vulnerability scanning with Docker and Aikido](https://swe.quest/articles/docker-hardened-images-enhanced-vulnerability-scanning-with-docker-and-aikido-d49b93c672989876.md): Docker · 2026-06-11 · Medium · 4 min read · Supply chain security, Containers, Security
  Aikido now scans Docker Hardened Images (DHI) using Docker's signed OpenVEX attestations, automatically suppressing CVEs that Docker has marked fixed or not affected so triage queues show only findings that actually apply.
- [Secure by Design: A Proactive Testing Approach with Testcontainers, Docker Scout, and Hardened Images](https://swe.quest/articles/secure-by-design-a-proactive-testing-approach-with-testcontainers-docker-scout-3bd5cb7e139bb4be.md): Docker · 2025-08-28 · Medium · 10 min read · Containers, Supply chain security, Testing, TypeScript
  Swapping a Node.js API's node:22-slim base image for a Docker Hardened Image (distroless dhi-node:22) eliminated all critical and high CVEs flagged by Docker Scout, including Debian 12's CVE-2025-6020, while avoiding the musl compatibility risk of switching to Alpine.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
