Ajoutez des fichiers projet.

This commit is contained in:
taywon18
2024-09-19 22:06:37 +02:00
parent 7420a47dc6
commit 70fe271ba4
39 changed files with 1605 additions and 0 deletions

24
Tagger/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
#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:8.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["Tagger/Tagger.csproj", "Tagger/"]
RUN dotnet restore "./Tagger/Tagger.csproj"
COPY . .
WORKDIR "/src/Tagger"
RUN dotnet build "./Tagger.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./Tagger.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Tagger.dll"]