revert 37afa9436d
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
revert Supprimer 'EntityFramework_LoL/Sources/API_LoL_Project/Dockerfile'master
parent
37afa9436d
commit
c0afc8a4a3
@ -0,0 +1,26 @@
|
|||||||
|
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||||
|
WORKDIR /app
|
||||||
|
EXPOSE 80
|
||||||
|
EXPOSE 443
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||||
|
WORKDIR /src
|
||||||
|
COPY ["API_LoL_Project/API_LoL_Project.csproj", "API_LoL_Project/"]
|
||||||
|
COPY ["StubLib/StubLib.csproj", "StubLib/"]
|
||||||
|
COPY ["Model/Model.csproj", "Model/"]
|
||||||
|
COPY ["Shared/Shared.csproj", "Shared/"]
|
||||||
|
COPY ["DTO/DTO.csproj", "DTO/"]
|
||||||
|
RUN dotnet restore "API_LoL_Project/API_LoL_Project.csproj"
|
||||||
|
COPY . .
|
||||||
|
WORKDIR "/src/API_LoL_Project"
|
||||||
|
RUN dotnet build "API_LoL_Project.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
|
FROM build AS publish
|
||||||
|
RUN dotnet publish "API_LoL_Project.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
|
FROM base AS final
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=publish /app/publish .
|
||||||
|
ENTRYPOINT ["dotnet", "API_LoL_Project.dll"]
|
Loading…
Reference in new issue