2 Commits

Author SHA1 Message Date
AndreStork c1ee7c5dab Aggiunta cartella JetBrains in gitignore 2026-04-16 12:34:01 +02:00
AndreStork d4f31f78f6 Fix Dockerfile (VS merda) 2026-04-16 12:32:39 +02:00
2 changed files with 9 additions and 6 deletions
+3
View File
@@ -55,3 +55,6 @@ nunit-*.xml
.vs/ .vs/
pizza.db* pizza.db*
# JetBrains Rider
.idea/
+5 -5
View File
@@ -12,16 +12,16 @@ EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release ARG BUILD_CONFIGURATION=Release
WORKDIR /src WORKDIR /src
COPY ["PizzaExpress/PizzaExpress.csproj", "PizzaExpress/"] COPY ["PizzaExpress.csproj", "."]
RUN dotnet restore "./PizzaExpress/PizzaExpress.csproj" RUN dotnet restore "PizzaExpress.csproj"
COPY . . COPY . .
WORKDIR "/src/PizzaExpress" #WORKDIR "/src/PizzaExpress"
RUN dotnet build "./PizzaExpress.csproj" -c $BUILD_CONFIGURATION -o /app/build RUN dotnet build "PizzaExpress.csproj" -c $BUILD_CONFIGURATION -o /app/build
# Questa fase viene usata per pubblicare il progetto di servizio da copiare nella fase finale # Questa fase viene usata per pubblicare il progetto di servizio da copiare nella fase finale
FROM build AS publish FROM build AS publish
ARG BUILD_CONFIGURATION=Release ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./PizzaExpress.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false RUN dotnet publish "PizzaExpress.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
# Questa fase viene usata nell'ambiente di produzione o durante l'esecuzione da Visual Studio in modalità normale (impostazione predefinita quando non si usa la configurazione di debug) # Questa fase viene usata nell'ambiente di produzione o durante l'esecuzione da Visual Studio in modalità normale (impostazione predefinita quando non si usa la configurazione di debug)
FROM base AS final FROM base AS final