Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Dec 9, 2024
1 parent 0f34c1d commit 2008fa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /source

COPY . .
RUN dotnet restore ./src/

WORKDIR /source/src
RUN dotnet publish -c release -o /app --no-restore
RUN dotnet restore SharpScript.csproj
RUN dotnet publish SharpScript.csproj -c release -o /app --no-restore

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
LABEL service="sharpscript"

WORKDIR /app
ENV ASPNETCORE_URLS=http://+:8080
COPY --from=build /app ./
ENTRYPOINT ["dotnet", "SharpScript.dll"]
ENTRYPOINT ["dotnet", "SharpScript.dll"]
4 changes: 0 additions & 4 deletions SharpScript.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
<PublishProfile>DefaultContainer</PublishProfile>
</PropertyGroup>

<ItemGroup>
<ContainerLabel Include="service" Value="my-app" />
</ItemGroup>

<ItemGroup>
<Using Include="SharpScript" />
<Using Include="ServiceStack" />
Expand Down

0 comments on commit 2008fa7

Please # to comment.