diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b925579 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# Stage 1 +FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build +WORKDIR /build +ENV ASPNETCORE_URLS=http://*:2121 +COPY . . +RUN dotnet restore +RUN dotnet publish -c Release -o /app +# Stage 2 +FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS final +WORKDIR /app +COPY --from=build /app . + +EXPOSE 2121 + +ENTRYPOINT ["dotnet", "EvoCalculator.Core.dll"] \ No newline at end of file