From 88c95af0df76d01d95df3b0650e4cf2faaa41140 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 16 Dec 2025 13:31:02 -0600 Subject: [PATCH] Add Docker install instructions --- docs/installation.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 647015c..71318a2 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -72,6 +72,21 @@ Install ty into your current Python environment with pip: pip install ty ``` +### Installing in Docker + +Install ty in Docker by copying the binary from the official image: + +```dockerfile title="Dockerfile" +COPY --from=ghcr.io/astral-sh/ty:latest /ty /bin/ +``` + +The following tags are available: + +- `ghcr.io/astral-sh/ty:latest` +- `ghcr.io/astral-sh/ty:{major}.{minor}.{patch}`, e.g., `ghcr.io/astral-sh/ty:0.0.1` +- `ghcr.io/astral-sh/ty:{major}.{minor}`, e.g., `ghcr.io/astral-sh/ty:0.0` (the latest patch + version) + ## Adding ty to your editor See the [editor integration](./editors.md) guide to add ty to your editor.