Hacker News new | ask | show | jobs
by goralph 3218 days ago
Since you're using docker for educational purposes, just a tip. You have multiple `RUN` commands. Each command will create an individual docker layer, causing your image to take up unnecessary amounts of space.

Instead you should run all of the bootstrap (apt-get, etc) under a single run, using `&&` to chain commands.

1 comments

Ah cool, I'll have to try that, thanks for the information.
I sometimes use this linter: https://github.com/lukasmartinelli/hadolint