---
title: "Discussion on \"I built a 45MB, 0-Vulnerability Node.js Runtime (and why you should stop using node:alpine)\" | Hashnode"
description: "Discussion on \"I built a 45MB, 0-Vulnerability Node.js Runtime (and why you should stop using node:alpine)\". I optimized the Node.js Docker runtime down to its absolute limit. No OS, no shell, no package manager. Just Node.js running on scratch."
url: "https://hashnode.com/posts/i-built-a-45mb-0-vulnerability-node-js-runtime-and-why-you-should-stop-using-node-alpine/69a19f55f74c7a2f10e28e0a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [I built a 45MB, 0-Vulnerability Node.js Runtime (and why you should stop using node:alpine)](https://runtime-node.hashnode.dev/i-built-a-45mb-0-vulnerability-node-js-runtime-and-why-you-should-stop-using-node-alpine?utm_source=hashnode&utm_medium=feed)

I optimized the Node.js Docker runtime down to its absolute limit. No OS, no shell, no package manager. Just Node.js running on scratch.

Feb 27 · 4 min read · runtime-node.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#node](https://hashnode.com/tag/node)
-   [#nodejs-developer](https://hashnode.com/tag/nodejs-developer)
-   [#developers](https://hashnode.com/tag/developers)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#open-source](https://hashnode.com/tag/open-source)
-   [#secure](https://hashnode.com/tag/secure)
-   [#security](https://hashnode.com/tag/security)
-   [#securityawareness](https://hashnode.com/tag/securityawareness)
-   [#secure-coding](https://hashnode.com/tag/secure-coding)
-   [#docker](https://hashnode.com/tag/docker)
-   [#docker-images](https://hashnode.com/tag/docker-images)
-   [#dockerfile](https://hashnode.com/tag/dockerfile)

## Written by

[Runtime Node](https://hashnode.com/@runtime-node)

@runtime-node

  
[View profile](https://hashnode.com/@runtime-node)

Node.js, Docker

Stop shipping OS bloat. A secure, distroless Node.js base image designed for efficient containerization. ~45MB compressed.

## Responses 1

Markdown supported · ⌘↵ to post

[klement Gunndu](https://hashnode.com/@klementgunnduai)

[Mar 2](https://hashnode.com/posts/i-built-a-45mb-0-vulnerability-node-js-runtime-and-why-you-should-stop-using-node-alpine/69a19f55f74c7a2f10e28e0a/comment/69a4e91ee6d11a384179002a)

The scratch-based extraction approach maps well beyond Node.js. We applied a similar principle to Python containers for ML inference — extracting only the shared libraries the model runtime actually links against reduced our image from 1.2GB to under 200MB and eliminated 40+ CVEs that were sitting in unused system packages. The "does your container need a shell" question is the right forcing function for any production image review.
