Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up docker build #685

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Speed up docker build #685

wants to merge 6 commits into from

Conversation

dynamictulip
Copy link
Collaborator

Utilise Docker build caching to reduce image build time from 2 minutes to 15 seconds

Changes

  • Split up Docker file copy steps so package restore can be cached in most instances
  • Only copy relevant files when needed so irrelevant changes don't affect caching
  • Arrange docker build steps in order of least likely to be affected by file changes so the step caches aren't invalidated by irrelevant changes
  • Remove obsolete docker compose version tag
  • Update documentation around Docker issues on Windows
  • Update example docker env file

Checklist

  • Pull request attached to the appropriate user story in Azure DevOps
  • ADR decision log updated (if needed)
  • Release notes added to CHANGELOG.md
  • Testing complete - all manual and automated tests pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant