From 2008fa761562c0f4d7d31d00a66adfb42b21f5ed Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Mon, 9 Dec 2024 16:21:46 +0800 Subject: [PATCH] updates --- Dockerfile | 10 ++++------ SharpScript.csproj | 4 ---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8246b38..48dad51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT ["dotnet", "SharpScript.dll"] diff --git a/SharpScript.csproj b/SharpScript.csproj index e4d3220..6f4ecdd 100644 --- a/SharpScript.csproj +++ b/SharpScript.csproj @@ -10,10 +10,6 @@ DefaultContainer - - - -