deploiement 6
continuous-integration/drone/push Build is failing Details

pull/29/head
Maxime ROCHER 3 months ago
parent 0ba0670270
commit 5fbd65e3ba

@ -4,18 +4,16 @@ WORKDIR /app
EXPOSE 80 EXPOSE 80
EXPOSE 443 EXPOSE 443
# Étape 2 : Build de l'application avec le SDK .NET # Étape 2 : Build de l'application
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src WORKDIR /src
# Copier le fichier .csproj et restaurer les dépendances # Copier le fichier projet et restaurer les dépendances
COPY ["WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj", "./"] COPY ["WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj", "./"]
RUN dotnet restore "WF-WebAdmin.csproj" RUN dotnet restore "WF-WebAdmin.csproj"
# Copier tout le reste des fichiers sources # Copier tout le reste des fichiers et compiler
COPY . . COPY WF-WebAdmin/WF-WebAdmin/. .
# Compiler le projet
RUN dotnet build "WF-WebAdmin.csproj" -c Release -o /app/build RUN dotnet build "WF-WebAdmin.csproj" -c Release -o /app/build
# Étape 3 : Publication de l'application # Étape 3 : Publication de l'application

Loading…
Cancel
Save