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