Skip to content

iop/Dockerfile: Run apt-get update before install and clean up pkg index to prevent image layer bloat

Andreas Gnau requested to merge agnau-docker-build-failure-fix into devel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
6696882be085fd470b7963d80148ea4e218c67da ┃
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date:   Mon May 29 11:50:03 2023 +0200

    Dockerfile: Run apt-get update and clean up indices
    
    Run apt-get update before each apt-get install command to make sure that
    package indices are up-to-date. This prevents failures when having
    outdated package indices due to caching.
    
    Clean up (i.e. delete) package indices in each step to both to reduce
    image layer bloat and to prevent people from doing the same mistake
    again.
    
    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
0361c17435a7f8696d02917fed8ade41911e8fef ┃
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date:   Mon May 29 11:49:15 2023 +0200

    iop: Run apt-get update before install and exit on error
    
    This prevents failures on outdated or missing package indices.
    
    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
Edited by Andreas Gnau

Merge request reports