From 321a0ab62fb5f1f023816ff16a9b0896f098d362 Mon Sep 17 00:00:00 2001 From: Victor Skvortsov Date: Mon, 12 May 2025 10:55:46 +0500 Subject: [PATCH] Add example of including plugins into a dstack-server Docker image --- examples/plugins/example_plugin/Dockerfile | 9 +++++++++ examples/plugins/example_plugin/enterprise.Dockerfile | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 examples/plugins/example_plugin/Dockerfile create mode 100644 examples/plugins/example_plugin/enterprise.Dockerfile diff --git a/examples/plugins/example_plugin/Dockerfile b/examples/plugins/example_plugin/Dockerfile new file mode 100644 index 000000000..54b5660ec --- /dev/null +++ b/examples/plugins/example_plugin/Dockerfile @@ -0,0 +1,9 @@ +# Example of including plugins into the dstack server Docker image +FROM dstackai/dstack:latest + +# Installing plugin from Docker context +COPY . plugins/example_plugin +RUN uv tool install "dstack[all]" --with plugins/example_plugin + +# Installing some other plugins from pypi/git +# RUN uv tool install "dstack[all]" --with plugin1 --with plugin2 diff --git a/examples/plugins/example_plugin/enterprise.Dockerfile b/examples/plugins/example_plugin/enterprise.Dockerfile new file mode 100644 index 000000000..f59d900ae --- /dev/null +++ b/examples/plugins/example_plugin/enterprise.Dockerfile @@ -0,0 +1,9 @@ +# Example of including plugins into the dstack Enterprise Docker image +FROM ghcr.io/dstackai/dstack-enterprise:latest + +# Installing plugin from Docker context +COPY . plugins/example_plugin +RUN uv pip install plugins/example_plugin + +# Installing some other plugins from pypi/git +# RUN uv pip install plugin-name