File tree 2 files changed +4
-10
lines changed
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
2
2
WORKDIR /source
3
3
4
4
COPY . .
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
9
7
10
8
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
11
9
LABEL service="sharpscript"
12
-
13
10
WORKDIR /app
11
+ ENV ASPNETCORE_URLS=http://+:8080
14
12
COPY --from=build /app ./
15
- ENTRYPOINT ["dotnet" , "SharpScript.dll" ]
13
+ ENTRYPOINT ["dotnet" , "SharpScript.dll" ]
Original file line number Diff line number Diff line change 10
10
<PublishProfile >DefaultContainer</PublishProfile >
11
11
</PropertyGroup >
12
12
13
- <ItemGroup >
14
- <ContainerLabel Include =" service" Value =" my-app" />
15
- </ItemGroup >
16
-
17
13
<ItemGroup >
18
14
<Using Include =" SharpScript" />
19
15
<Using Include =" ServiceStack" />
You can’t perform that action at this time.
0 commit comments