Compare commits
2 Commits
b28c9cbb85
...
c1ee7c5dab
| Author | SHA1 | Date | |
|---|---|---|---|
|
c1ee7c5dab
|
|||
|
d4f31f78f6
|
@@ -55,3 +55,6 @@ nunit-*.xml
|
|||||||
|
|
||||||
.vs/
|
.vs/
|
||||||
pizza.db*
|
pizza.db*
|
||||||
|
|
||||||
|
# JetBrains Rider
|
||||||
|
.idea/
|
||||||
|
|||||||
@@ -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