Skip to content

Build: Optimize runner stage in Dockerfile#19

Merged
jonathanpotts merged 7 commits into
jonathanpotts:mainfrom
glensc:fixes
Mar 27, 2026
Merged

Build: Optimize runner stage in Dockerfile#19
jonathanpotts merged 7 commits into
jonathanpotts:mainfrom
glensc:fixes

Conversation

@glensc

@glensc glensc commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

See commit messages for details.

The overall optimization is to commit layers that don't change first, like apt install.

This probably has no difference for end users, but makes rebuilds faster when developing the Dockerfile.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Optimizes the Docker image “runner” stage layering to improve rebuild times when iterating on the Dockerfile, mainly by reordering dependency installation and copy/ownership steps.

Changes:

  • Reordered runner-stage steps (deps install, user creation, copy) to improve layer caching.
  • Adjusted runtime file ownership/permissions during COPY and data dir creation.
  • Added /.idea to .gitignore.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
Dockerfile Reorders runner stage instructions; switches to COPY --chmod/--chown and uses install -d for data dir ownership.
.gitignore Ignores JetBrains IDE project directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Dockerfile
Comment thread Dockerfile
@jonathanpotts jonathanpotts merged commit fc7f50b into jonathanpotts:main Mar 27, 2026
4 of 5 checks passed
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.

3 participants