Skip to content

OCI: Slightly streamline the Dockerfile #304

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amotl
Copy link
Contributor

@amotl amotl commented Jul 10, 2025

That's just a few bits of copy-editing the Dockerfile.

  • Use canonical OCI-based installation method for uv
  • Use environment variables to configure uv
  • Remove redundant platform-switch instructions (x64 vs. arm64)
  • Compress uv pip install into a single incantation

- Use canonical OCI-based installation method for `uv`
- Use environment variables to configure `uv`
- Remove redundant platform-switch instructions (x64 vs. arm64)
- Compress `uv pip install` into a single incantation
@amotl amotl marked this pull request as ready for review July 10, 2025 21:35
Comment on lines +10 to +18
# - Tell uv to byte-compile packages for faster application startups.
# - Silence uv complaining about not being able to use hard links.
# - Prevent uv from accidentally downloading isolated Python builds.
# - Install packages into the system Python environment.
ENV \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy \
UV_PYTHON_DOWNLOADS=never \
UV_SYSTEM_PYTHON=1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using UV_COMPILE_BYTECODE=1 is the main attraction of this patch. ;]

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