Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • D distribution
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Plural
  • platform
  • distribution
  • Repository
Switch branch/tag
  • distribution
  • Dockerfile
Find file BlameHistoryPermalink
  • Adam Duke's avatar
    reorder Dockerfile steps for better layer caching · 41c87559
    Adam Duke authored Jul 21, 2016
    
    
    Running `apk add` before copying source into the image takes better
    adavantage of layer caching when developing and regularly building the
    image. This avoids source code changes invalidating the `apk add` layer
    and causing that step to run on every image build.
    Signed-off-by: default avatarAdam Duke <adam.v.duke@gmail.com>
    41c87559