vipentti / dotnet-check-updates

dotnet tool for checking if there are updates available to NuGet packages installed in C# projects.
MIT License
11 stars 0 forks source link

run from inside Docker #15

Open vkuehn opened 5 days ago

vkuehn commented 5 days ago

The tool looks exactly what I am searching for but don't have much installed on my machine.

Would it be possible to run dotnet-check-updates from insed a docker container ?

If so could you kindly at it to the readme ?

vkuehn commented 5 days ago

uh found a solution...


FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build

# Set environment variables for the dotnet CLI and path
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 \
    DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 \
    PATH="$PATH:/root/.dotnet/tools"

# Install the 'dotnet-check-updates' tool globally
RUN dotnet tool install --global dotnet-check-updates

# Start a shell session to interact with the container
CMD ["bash"]```

feel free to close that issue