Skip to content

How can I stay on the latest SDK patch version?Β #465

@Nefcanto

Description

@Nefcanto

Hello

I'm using your images for my development Docker image. This is my Dockerfile:

# https://mcr.microsoft.com/v2/vscode/devcontainers/dotnet/tags/list
ARG VARIANT="7.0-bullseye-slim"
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:${VARIANT}

ENV PATH="${PATH}:/Company/Commands/ApiContainer"

ENV Nuget=/root/.local/share/NuGet/http-cache/

COPY . /Company/Infra

RUN mkdir /Temp \
    && cd /Temp \
    && dotnet new console \
    && echo '<Project Sdk="Microsoft.NET.Sdk.Web"><Import Project="/Company/Infra/DotNet.targets" /></Project>' > /Temp/Temp.csproj \
    && echo 'System.Console.WriteLine("hello");' > /Temp/Program.cs \
    && dotnet restore \
    && dotnet build \
    && cd / \
    && rm -rf /Temp

RUN apt update \
    && apt install bc -y \
    && apt install -y procps \
    && apt install gettext-base \
    && apt install apt-utils -y \
    && apt install libgdiplus -y \
    && apt install libc6-dev -y \
    && apt install webp -y \
    && apt install imagemagick -y \
    && cd /usr/local/bin \
    && curl https://getmic.ro | bash

However, when I build it, run a container from it, and enter into the container using docker exec -it container_name bash, and run the dotnet --info I see this message:

root ➜ / $ dotnet --info
.NET SDK:
 Version:   7.0.103
 Commit:    276c71d299

Runtime Environment:
 OS Name:     debian
 OS Version:  11
 OS Platform: Linux
 RID:         debian.11-x64
 Base Path:   /usr/share/dotnet/sdk/7.0.103/

Host:
  Version:      7.0.3
  Architecture: x64
  Commit:       0a2bda10e8

.NET SDKs installed:
  7.0.103 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

As you can see the .NET SDK version is 7.0.103.

However, at the same time, the .NET SDK version in its download page is 7.0.201.

I need to stay on the latest patch update. How can I do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions