1234567891011121314151617181920212223242526 |
- #See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
- FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
- WORKDIR /app
- EXPOSE 80
- EXPOSE 443
- FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
- WORKDIR /src
- COPY ["Ropin.Environmentally.VideoService/Ropin.Environmentally.VideoService.csproj", "Ropin.Environmentally.VideoService/"]
- COPY ["Ropin.Core.Common/Ropin.Core.Common.csproj", "Ropin.Core.Common/"]
- COPY ["Ropin.Inspection.Common/Ropin.Inspection.Common.csproj", "Ropin.Inspection.Common/"]
- COPY ["Ropin.Inspection.Model/Ropin.Inspection.Model.csproj", "Ropin.Inspection.Model/"]
- COPY ["Ropin.Inspection.Repository/Ropin.Inspection.Repository.csproj", "Ropin.Inspection.Repository/"]
- RUN dotnet restore "Ropin.Environmentally.VideoService/Ropin.Environmentally.VideoService.csproj"
- COPY . .
- WORKDIR "/src/Ropin.Environmentally.VideoService"
- RUN dotnet build "Ropin.Environmentally.VideoService.csproj" -c Release -o /app/build
- FROM build AS publish
- RUN dotnet publish "Ropin.Environmentally.VideoService.csproj" -c Release -o /app/publish /p:UseAppHost=false
- FROM base AS final
- WORKDIR /app
- COPY --from=publish /app/publish .
- ENTRYPOINT ["dotnet", "Ropin.Environmentally.VideoService.dll"]
|