From 796e3417d52a355653b5524b6a33731664bea5bf Mon Sep 17 00:00:00 2001 From: Chika Date: Mon, 17 May 2021 11:12:47 +0300 Subject: [PATCH] add dockerfile --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3eed3fc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# Stage 1 +FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build +WORKDIR /build +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", "ELT.dll"] \ No newline at end of file