add dockerfile

This commit is contained in:
Chika 2021-05-17 11:12:47 +03:00
parent 563013e124
commit 796e3417d5

14
Dockerfile Normal file
View File

@ -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"]