From ed0802667717aeb82f16ab63cff42ce4456b3597 Mon Sep 17 00:00:00 2001 From: nutchayut Date: Thu, 30 May 2024 17:57:02 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Dockerfile b/Dockerfile index e69de29..868ea59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM registry.71dev.com/dotnetsdk:8.0 as build-env +WORKDIR /source +COPY . . +RUN dotnet publish OCPP.Core.Server/OCPP.Core.Server.csproj -o /publish +#RUN dotnet build +#RUN dotnet publish -o /publish --configuration Release ; +# Publish Stage +FROM registry.71dev.com/dotnetaspnet:8.0 +WORKDIR /app +COPY --from=build-env /publish . +ENV ASPNETCORE_URLS http://*:8081 +ENTRYPOINT ["dotnet", "OCPP.Core.Server.dll"] \ No newline at end of file