Skip to content

Commit 2008fa7

Browse files
committed
updates
1 parent 0f34c1d commit 2008fa7

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Dockerfile

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
22
WORKDIR /source
33

44
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
97

108
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
119
LABEL service="sharpscript"
12-
1310
WORKDIR /app
11+
ENV ASPNETCORE_URLS=http://+:8080
1412
COPY --from=build /app ./
15-
ENTRYPOINT ["dotnet", "SharpScript.dll"]
13+
ENTRYPOINT ["dotnet", "SharpScript.dll"]

SharpScript.csproj

-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
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" />

0 commit comments

Comments
 (0)