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 1 month ago

vkuehn commented 1 month 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 1 month 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