This repository was archived by the owner on Sep 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
src/SqlStreamStore.HAL.DevServer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM microsoft/dotnet:2.1.401 -sdk-alpine3.7 AS build
1+ FROM microsoft/dotnet:2.1.402 -sdk-alpine3.7 AS build
22ARG TRAVIS_BUILD_NUMBER
33ARG MYGET_API_KEY
44WORKDIR /src
@@ -9,7 +9,7 @@ RUN for file in $(ls *.csproj); do mkdir -p ./${file%.*}/ && mv $file ./${file%.
99
1010COPY ./NuGet.Config ./
1111
12- RUN dotnet restore
12+ RUN dotnet restore --runtime=alpine.3.7-x64
1313
1414COPY ./src .
1515
@@ -27,11 +27,11 @@ RUN TRAVIS_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER MYGET_API_KEY=$MYGET_API_KEY dotnet
2727
2828WORKDIR /src/SqlStreamStore.HAL.DevServer
2929
30- RUN dotnet publish --configuration=Release --output=/publish --no-build --no-restore
30+ RUN dotnet publish --configuration=Release --output=/publish --no-restore --runtime=alpine.3.7-x64
3131
32- FROM microsoft/dotnet:2.1.3-aspnetcore- runtime-alpine3.7 AS runtime
32+ FROM microsoft/dotnet:2.1.4- runtime-deps -alpine3.7 AS runtime
3333
3434WORKDIR /app
3535COPY --from=build /publish ./
3636
37- ENTRYPOINT ["dotnet" , " SqlStreamStore.HAL.DevServer.dll " ]
37+ ENTRYPOINT ["/app/ SqlStreamStore.HAL.DevServer" ]
Original file line number Diff line number Diff line change 33 <OutputType >Exe</OutputType >
44 <TargetFramework >netcoreapp2.1</TargetFramework >
55 <LangVersion >latest</LangVersion >
6+ <RuntimeIdentifiers >alpine.3.7-x64</RuntimeIdentifiers >
7+ <TargetLatestRuntimePatch >true</TargetLatestRuntimePatch >
68 </PropertyGroup >
79 <ItemGroup >
810 <PackageReference Include =" Microsoft.AspNetCore.Hosting" Version =" 2.1.1" />
You can’t perform that action at this time.
0 commit comments