build --build-arg TARGET_RID=android-arm64

This commit is contained in:
Paul Schneider 2026-06-07 12:19:18 +01:00
commit 6ceec55ed9
2 changed files with 5 additions and 4 deletions

View file

@ -34,9 +34,11 @@ RUN dotnet restore
# 5. Copie de la totalité du code source (filtrée par votre .dockerignore)
COPY . .
# Définir une variable d'architecture par défaut (ex: android-arm64)
ARG TARGET_RID=android-arm64
# 6. Compilation du serveur Web principal
RUN dotnet build . -c Release --no-restore -clp:ErrorsOnly
# 6. Compilation du serveur Web principal, Injecter l'option -r avec la variable
RUN dotnet build . -c Release --no-restore -clp:ErrorsOnly -r ${TARGET_RID}
# Définition du répertoire d'exécution par défaut
CMD ["bash"]