This commit is contained in:
Jakub Míšek 2021-04-24 21:14:55 +02:00
Родитель f0f72cfe27
Коммит a78677da7f
4 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -0,0 +1,9 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0
COPY . /bench
WORKDIR /bench
RUN echo "{ \"msbuild-sdks\": { \"Peachpie.NET.Sdk\": \"1.0.5\" } }" > global.json
RUN dotnet build -c Release
ENTRYPOINT ["dotnet", "run", "--no-build", "-c", "Release"]

Просмотреть файл

@ -1,5 +1,5 @@
{
"msbuild-sdks": {
"Peachpie.NET.Sdk": "1.0.0"
"Peachpie.NET.Sdk": "1.0.5"
}
}

Просмотреть файл

@ -4,7 +4,7 @@ COPY ./config/peachpie /peachpie
# Restore NuGet packages before the specific app is questioned to better utilize Docker image caching
WORKDIR /peachpie
RUN echo "{ \"msbuild-sdks\": { \"Peachpie.NET.Sdk\": \"1.0.0\" } }" > global.json
RUN echo "{ \"msbuild-sdks\": { \"Peachpie.NET.Sdk\": \"1.0.5\" } }" > global.json
RUN dotnet restore
ARG app

Просмотреть файл

@ -4,7 +4,7 @@ COPY ./config/peachpie /peachpie
# Restore NuGet packages before the specific app is questioned to better utilize Docker image caching
WORKDIR /peachpie
RUN echo "{ \"msbuild-sdks\": { \"Peachpie.NET.Sdk\": \"1.0.0\" } }" > global.json
RUN echo "{ \"msbuild-sdks\": { \"Peachpie.NET.Sdk\": \"1.0.5\" } }" > global.json
RUN dotnet restore
ARG app