You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
524 B
21 lines
524 B
# Utiliser l'image SDK .NET pour construire l'application
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
|
WORKDIR /app
|
|
|
|
# Copier les fichiers du projet et restaurer les dépendances
|
|
COPY *.csproj .
|
|
RUN dotnet restore
|
|
|
|
# Copier tout le reste et construire l'application
|
|
COPY . .
|
|
RUN dotnet publish -c Release -o out
|
|
|
|
# Utiliser l'image runtime .NET pour exécuter l'application
|
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime
|
|
WORKDIR /app
|
|
COPY --from=build /app/out .
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["dotnet", "HeartTrack.dll"]
|