docker stuff
This commit is contained in:
parent
d789d59297
commit
d65cd7d69a
@ -9,4 +9,4 @@ Dockerfile*
|
||||
**/*.md
|
||||
**/*.ps1
|
||||
**/*.cmd
|
||||
**/*.sh
|
||||
#**/*.sh
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"files.eol": "\n"
|
||||
}
|
28
Dockerfile
28
Dockerfile
@ -1,5 +1,33 @@
|
||||
# https://hub.docker.com/_/microsoft-dotnet-core
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
||||
|
||||
WORKDIR /installer
|
||||
COPY ./dotnet-install.sh ./dotnet-install.sh
|
||||
RUN chmod +x dotnet-install.sh
|
||||
RUN ./dotnet-install.sh --channel 3.1
|
||||
# # Install .NET CLI dependencies
|
||||
# RUN apt-get update \
|
||||
# && apt-get install -y --no-install-recommends \
|
||||
# libc6 \
|
||||
# libgcc1 \
|
||||
# libgssapi-krb5-2 \
|
||||
# libicu60 \
|
||||
# libssl1.1 \
|
||||
# libstdc++6 \
|
||||
# zlib1g \
|
||||
# && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# # Install .NET Core SDK
|
||||
# RUN dotnet_sdk_version=3.1.404 \
|
||||
# && curl -SL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Sdk/$dotnet_sdk_version/dotnet-sdk-$dotnet_sdk_version-linux-x64.tar.gz \
|
||||
# && dotnet_sha512='94d8eca3b4e2e6c36135794330ab196c621aee8392c2545a19a991222e804027f300d8efd152e9e4893c4c610d6be8eef195e30e6f6675285755df1ea49d3605' \
|
||||
# && echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
|
||||
# && mkdir -p /usr/share/dotnet \
|
||||
# && tar -ozxf dotnet.tar.gz -C /usr/share/dotnet \
|
||||
# && rm dotnet.tar.gz \
|
||||
# && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet \
|
||||
# # Trigger first run experience by running arbitrary cmd
|
||||
# && dotnet help
|
||||
WORKDIR /src
|
||||
|
||||
# copy csproj and restore as distinct layers
|
||||
|
1108
dotnet-install.sh
vendored
Normal file
1108
dotnet-install.sh
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user