Compare commits
4 Commits
master
...
deploiemen
Author | SHA1 | Date |
---|---|---|
![]() |
6f27dd9a9f | 1 year ago |
![]() |
9d76856a33 | 1 year ago |
![]() |
84fd4f26ce | 1 year ago |
![]() |
b2b3c4ef0a | 1 year ago |
@ -0,0 +1,30 @@
|
||||
**/.classpath
|
||||
**/.dockerignore
|
||||
**/.env
|
||||
**/.git
|
||||
**/.gitignore
|
||||
**/.project
|
||||
**/.settings
|
||||
**/.toolstarget
|
||||
**/.vs
|
||||
**/.vscode
|
||||
**/*.*proj.user
|
||||
**/*.dbmdl
|
||||
**/*.jfm
|
||||
**/azds.yaml
|
||||
**/bin
|
||||
**/charts
|
||||
**/docker-compose*
|
||||
**/Dockerfile*
|
||||
**/node_modules
|
||||
**/npm-debug.log
|
||||
**/obj
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
LICENSE
|
||||
README.md
|
||||
!**/.gitignore
|
||||
!.git/HEAD
|
||||
!.git/config
|
||||
!.git/packed-refs
|
||||
!.git/refs/heads/**
|
@ -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:7.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
COPY ["VeraxShield/VeraxShield.csproj", "VeraxShield/"]
|
||||
RUN dotnet restore "./VeraxShield/VeraxShield.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/VeraxShield"
|
||||
RUN dotnet build "./VeraxShield.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish "./VeraxShield.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "VeraxShield.dll"]
|
@ -0,0 +1,25 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>db90e7c7-2fe7-4678-b9a3-95a1758ccd99</UserSecretsId>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<_ContentIncludedByDefault Remove="wwwroot\data\fakeUtilisateurs.json" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
|
||||
<PackageReference Include="Blazored.LocalStorage" Version="4.4.0" />
|
||||
<PackageReference Include="Blazorise.Bootstrap" Version="1.4.1" />
|
||||
<PackageReference Include="Blazorise.Components" Version="1.4.0" />
|
||||
<PackageReference Include="Blazorise.DataGrid" Version="1.4.1" />
|
||||
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.4.1" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -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:7.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
COPY ["VeraxShield/VeraxShield.csproj", "VeraxShield/"]
|
||||
RUN dotnet restore "./VeraxShield/VeraxShield.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/VeraxShield"
|
||||
RUN dotnet build "./VeraxShield.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish "./VeraxShield.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "VeraxShield.dll"]
|
@ -1,34 +0,0 @@
|
||||
# Première étape : Créer l'image de base
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
# Deuxième étape : Construire l'application
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
# Copier les fichiers nécessaires pour la restauration des dépendances
|
||||
COPY ["dockerfile", "."]
|
||||
COPY ["VeraxShield/VeraxShield/VeraxShield.csproj", "VeraxShield/"]
|
||||
RUN dotnet restore "VeraxShield/VeraxShield.csproj"
|
||||
|
||||
# Copier le reste des fichiers
|
||||
COPY . .
|
||||
|
||||
WORKDIR "/src/VeraxShield"
|
||||
RUN dotnet build "VeraxShield.csproj" -c Release -o /app/build
|
||||
|
||||
# Troisième étape : Publier l'application
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "VeraxShield.csproj" -c Release -o /app/publish
|
||||
|
||||
# Quatrième étape : Créer l'image finale
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
|
||||
# Copier les fichiers publiés dans l'image finale
|
||||
COPY --from=publish /app/publish .
|
||||
|
||||
# Définir le point d'entrée de l'application
|
||||
ENTRYPOINT ["dotnet", "VeraxShield.dll"]
|
@ -0,0 +1,18 @@
|
||||
# Doit être unique dans l'instance SonarQube
|
||||
sonar.projectKey=tony
|
||||
|
||||
# Le nom et la version affichés dans l'interface SonarQube
|
||||
sonar.projectName=projetSonarVeraxShield
|
||||
sonar.projectVersion=1.0
|
||||
|
||||
# Le chemin relatif aux fichiers que vous vous souhaitez analyser dans votre code
|
||||
|
||||
sonar.sources=VeraxShield
|
||||
|
||||
# Cas d'un projet utilisant composer.
|
||||
# On ignore l'analyse du code présent dans les dépendances.
|
||||
|
||||
# sonar.exclusions=vendor/**
|
||||
|
||||
# Encodage du code source.
|
||||
sonar.sourceEncoding=UTF-8
|
Loading…
Reference in new issue