---
title: "Discussion on \"Dockerfile good practices for Node and NPM\" | Hashnode"
description: "Discussion on \"Dockerfile good practices for Node and NPM\". The goal is to produce minimal image to keep the size low and reduce attack surface. Also we want to make the docker build process fast by removing unnecessary steps and using practices outlined below to leverage internal build cache.\nBesides pure Do..."
url: "https://hashnode.com/posts/dockerfile-good-practices-for-node-and-npm/601193c0ffaabc69d3ec6600"
---

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

Discussion

# [Dockerfile good practices for Node and NPM](https://adambrodziak.pl/dockerfile-good-practices-for-node-and-npm?utm_source=hashnode&utm_medium=feed)

The goal is to produce minimal image to keep the size low and reduce attack surface. Also we want to make the docker build process fast by removing unnecessary steps and using practices outlined below to leverage internal build cache. Besides pure Do...

Jan 27, 2021 · 7 min read · adambrodziak.pl  
Updated Dec 21, 2023  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#docker-images](https://hashnode.com/tag/docker-images)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#npm](https://hashnode.com/tag/npm)

## Written by

[Adam Brodziak](https://hashnode.com/@adambro)

@adambro

  
[View profile](https://hashnode.com/@adambro)

SRE / DevOps exploring Kubernetes, Docker, Cloud, AWS.

SRE / DevOps exploring Kubernetes, Docker, Cloud, AWS. Working with software from (A)nalysis to (T)ermination.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
