From 20777fe25de9b8458bc968b978d28abbae06769b Mon Sep 17 00:00:00 2001 From: Noan07 <84435602+Noan07@users.noreply.github.com> Date: Sat, 18 Mar 2023 07:41:48 +0100 Subject: [PATCH] =?UTF-8?q?:hammer:=20Modif=20DockerFile=20/=20essai=20pou?= =?UTF-8?q?r=20r=C3=A9soudre=20le=20probl=C3=A8me=20d'instance=20dans=20le?= =?UTF-8?q?=20conteneur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/server/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/server/Dockerfile b/code/server/Dockerfile index ab1f7af..b354efd 100644 --- a/code/server/Dockerfile +++ b/code/server/Dockerfile @@ -1,6 +1,4 @@ -#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. - -FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:6.0-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443 @@ -14,6 +12,7 @@ RUN dotnet restore "ApiLeapHit/ApiLeapHit.csproj" COPY . . WORKDIR "/src/ApiLeapHit" RUN dotnet build "ApiLeapHit.csproj" -c Release -o /app/build +RUN rm -rf /root/.nuget/packages/* FROM build AS publish RUN dotnet publish "ApiLeapHit.csproj" -c Release -o /app/publish