9elements / firmware-action

Build system for firmware images for several open source firmware solutions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimise Dockerfile

AtomicFS opened this issue · comments

The Dockerfile can be optimised:

  • prevent apt-get install from installing recommended packages by adding --no-install-recommends
  • delete the apt-get lists to reduce container size
    • also consider reducing the Dockerfile to single RUN command to reduce number of snapshots
  • use quotes to prevent word splitting
  • use WORKDIR to switch to a directory
  • possible misspelling: NONOSIVERSION vs NONOSIVERION

Reported by MegaLinter [DOCKERFILE][hadolint].

Blocked by issues in milestone 1