Compare commits
2 Commits
b28c9cbb85
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
c1ee7c5dab
|
|||
|
d4f31f78f6
|
+4
-1
@@ -54,4 +54,7 @@ TestResult.xml
|
||||
nunit-*.xml
|
||||
|
||||
.vs/
|
||||
pizza.db*
|
||||
pizza.db*
|
||||
|
||||
# JetBrains Rider
|
||||
.idea/
|
||||
|
||||
@@ -12,16 +12,16 @@ EXPOSE 8081
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
COPY ["PizzaExpress/PizzaExpress.csproj", "PizzaExpress/"]
|
||||
RUN dotnet restore "./PizzaExpress/PizzaExpress.csproj"
|
||||
COPY ["PizzaExpress.csproj", "."]
|
||||
RUN dotnet restore "PizzaExpress.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/PizzaExpress"
|
||||
RUN dotnet build "./PizzaExpress.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
#WORKDIR "/src/PizzaExpress"
|
||||
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
|
||||
FROM build AS publish
|
||||
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)
|
||||
FROM base AS final
|
||||
|
||||
Reference in New Issue
Block a user