|
1 | | -# Test base image in shell: |
| 1 | +# Test MSCR image in shell: |
| 2 | +# docker run -it --rm --pull always --name Testing mcr.microsoft.com/dotnet/sdk:latest /bin/bash |
| 3 | + |
| 4 | +# Test LSIO image in shell: |
2 | 5 | # docker run -it --rm --pull always --name Testing lscr.io/linuxserver/code-server:latest /bin/bash |
3 | 6 | # export DEBIAN_FRONTEND=noninteractive |
4 | 7 |
|
|
11 | 14 | # Test linux/amd64 target |
12 | 15 | # docker buildx build --load --progress plain --no-cache --platform linux/amd64 --tag testing:latest . |
13 | 16 | # docker run -it --rm --name Testing testing:latest /bin/bash |
| 17 | +# docker run -d --name Testing testing:latest |
| 18 | +# http://localhost:8443/ |
| 19 | +# docker stop Testing |
| 20 | +# docker rm Testing |
14 | 21 |
|
15 | 22 |
|
16 | 23 |
|
17 | 24 | # https://github.com/linuxserver/docker-code-server |
18 | 25 | FROM lscr.io/linuxserver/code-server:latest |
19 | 26 |
|
20 | 27 | # Image label |
21 | | -# TODO: Get current STS and LTS versions dynamically |
| 28 | +# TODO: Get current LTS and STS versions dynamically |
22 | 29 | ARG LABEL_VERSION="60.70" |
23 | 30 | LABEL name="VSCode-Server-DotNet" \ |
24 | 31 | version=${LABEL_VERSION} \ |
@@ -58,16 +65,18 @@ RUN apt-get update && apt-get upgrade -y \ |
58 | 65 | && apt-get clean \ |
59 | 66 | && rm -rf /var/lib/apt/lists/* |
60 | 67 |
|
61 | | -# TODO: What is preferred way to set the root and get in path? |
| 68 | +# Set .NET root to same path used for installation |
| 69 | +# https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#set-environment-variables |
62 | 70 | ENV DOTNET_ROOT=/usr/share/dotnet |
63 | | -ENV DOTNET_CLI_HOME=/usr/share/dotnet |
64 | 71 |
|
65 | 72 | # Install .NET |
66 | 73 | # https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script |
| 74 | +# https://github.com/dotnet/install-scripts/blob/main/src/dotnet-install.sh |
67 | 75 | RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh \ |
68 | 76 | && chmod +x ./dotnet-install.sh \ |
69 | | - && ./dotnet-install.sh --install-dir /usr/share/dotnet --version latest --channel LTS\ |
70 | | - && ./dotnet-install.sh --install-dir /usr/share/dotnet --version latest --channel STS\ |
| 77 | + && ./dotnet-install.sh --install-dir /usr/share/dotnet --version latest --channel LTS \ |
| 78 | + && ./dotnet-install.sh --install-dir /usr/share/dotnet --version latest --channel STS \ |
| 79 | + && rm ./dotnet-install.sh \ |
71 | 80 | && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet \ |
72 | 81 | && dotnet --list-runtimes \ |
73 | 82 | && dotnet --list-sdks \ |
|
0 commit comments