Fix Dockerfile (VS merda)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user