Debug du chemin vers l'api
continuous-integration/drone/push Build is failing Details

deploiement
Clement CHIEU 1 year ago
parent 1b1ff43d33
commit f00adb968e

@ -1,24 +1,24 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
COPY API_SQLuedo/API/API.csproj /api/
WORKDIR /api
EXPOSE 5000
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY API_SQLuedo/API/API.csproj .
# Restore dependencies # Restore dependencies
RUN dotnet restore API.csproj RUN dotnet restore API.csproj
# Copy the rest of the files # Copy the rest of the files
COPY API_SQLuedo/API/. api/ COPY API_SQLuedo/API/ .
WORKDIR "/src/API_SQLuedo"
RUN dotnet build "API.csproj" -c Release -o /app/build # Build the application
RUN dotnet build API.csproj -c Release -o /app/build
# Publish the application # Publish the application
FROM build AS publish FROM build AS publish
RUN dotnet publish "API.csproj" -c Release -o /app/publish RUN dotnet publish API.csproj -c Release -o /app/publish
# Final image # Final image
FROM base AS final FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app WORKDIR /api
EXPOSE 5000
COPY --from=publish /app/publish . COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "API.dll"] ENTRYPOINT ["dotnet", "API.dll"]

Loading…
Cancel
Save