Files
oopt-gnpy-web-gui/TelecomInfraProject/Dockerfile
2022-03-24 12:26:46 +05:30

21 lines
787 B
Docker

#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed.
#For more information, please see https://aka.ms/containercompat
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
WORKDIR /app
EXPOSE 80
# copy csproj and restore as distinct layers
COPY *.sln .
COPY TelecomInfraProject/*.csproj ./TelecomInfraProject/
RUN dotnet restore
# copy everything else and build app
COPY TelecomInfraProject/. ./TelecomInfraProject/
WORKDIR /app/TelecomInfraProject
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS runtime
WORKDIR /app
COPY --from=build /app/TelecomInfraProject/out ./
ENTRYPOINT ["dotnet", "TelecomInfraProject.dll"]