Skip to content

Commit 56637e8

Browse files
Update containers for preview 7 (#9995)
* Update containers for preview 7 * Add dnx feature notes --------- Co-authored-by: Logan Bussell <[email protected]>
1 parent 125f65d commit 56637e8

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

release-notes/10.0/preview/preview7/containers.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,25 @@
22

33
Here's a summary of what's new in Containers in this preview release:
44

5-
- [Feature](#feature)
5+
- [`dnx` is now on the `PATH` in SDK images](#dnx-is-now-on-the-path-in-sdk-images)
66

77
Containers updates in .NET 10:
88

99
- [What's new in .NET 10](https://learn.microsoft.com/dotnet/core/whats-new/dotnet-10/overview) documentation
1010

11-
## Feature
11+
## `dnx` is now on the `PATH` in SDK images
1212

13-
Something about the feature
13+
`dnx` is now available directly from .NET 10 SDK container images. See [One-shot tool execution](../preview6/sdk.md#one-shot-tool-execution) for more details about `dnx`.
14+
15+
To run a .NET tool using `dnx` in your Dockerfile build, you can use the following syntax:
16+
17+
```Dockerfile
18+
FROM mcr.microsoft.com/dotnet/sdk:10.0-preview
19+
RUN dnx --yes <packageId> [<commandArguments>...]
20+
```
21+
22+
To use `dnx` from the .NET SDK image directly from the command line, you can use the following Docker command:
23+
24+
```console
25+
docker run --rm mcr.microsoft.com/dotnet/sdk:10.0-preview dnx --yes <packageId> [<commandArguments>...]
26+
```

0 commit comments

Comments
 (0)