dotnet / dotnet/core

`dotnetsay` does not output any of the input text when used in a container

Open
#10,026 2 comments 0 reactions 1 assignee Claimed by @richlander View on GitHub
area-docker
Dominant language
PowerShell
Stars
22k
Forks
4.9k
Avg merge
5d 5h
Merged PRs (30d)
29

Description

I can't get the `dotnetsay` tool (https://www.nuget.org/packages/dotnetsay) to work in Docker. Here's what I've tried:

## Repro steps

Running directly from the Docker CLI:

```console
docker run --rm mcr.icrosoft.com/dotnet/nightly/sdk:10.0-preview dnx --yes dotnetsay hello world
```

Running from a Dockerfile build:

```Dockerfile
FROM mcr.microsoft.com/dotnet/nightly/sdk:10.0-preview AS build
RUN dnx --yes dotnetsay hello world

# This also doesn't work:
RUN ["dnx", "--yes", "dotnetsay", "hello world"]
```

## Observed behavior

Building the Dockerfile with `docker build --no-cache --progress=plain .`, dotnet bot doesn't "say" anything, only the ASCII art is output.

## Expected behavior

The text "hello world" should be output, followed by some ASCII art of dotnet-bot.

It looks like @richlander owns the package.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.