File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,12 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
22WORKDIR /source
33
44COPY . .
5- RUN dotnet restore ./src/
6-
7- WORKDIR /source/src
8- RUN dotnet publish -c release -o /app --no-restore
5+ RUN dotnet restore SharpScript.csproj
6+ RUN dotnet publish SharpScript.csproj -c release -o /app --no-restore
97
108FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
119LABEL service="sharpscript"
12-
1310WORKDIR /app
11+ ENV ASPNETCORE_URLS=http://+:8080
1412COPY --from=build /app ./
15- ENTRYPOINT ["dotnet" , "SharpScript.dll" ]
13+ ENTRYPOINT ["dotnet" , "SharpScript.dll" ]
Original file line number Diff line number Diff line change 1010 <PublishProfile >DefaultContainer</PublishProfile >
1111 </PropertyGroup >
1212
13- <ItemGroup >
14- <ContainerLabel Include =" service" Value =" my-app" />
15- </ItemGroup >
16-
1713 <ItemGroup >
1814 <Using Include =" SharpScript" />
1915 <Using Include =" ServiceStack" />
You can’t perform that action at this time.
0 commit comments