Compare commits
2 Commits
f15bb7a916
...
7b8dd3ff40
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b8dd3ff40 | |||
| 83fd5c076e |
@@ -1,5 +1,5 @@
|
|||||||
# ---------- Build stage ----------
|
# ---------- Build stage ----------
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# Restore first to leverage Docker layer caching.
|
# Restore first to leverage Docker layer caching.
|
||||||
@@ -10,7 +10,7 @@ COPY . .
|
|||||||
RUN dotnet publish "MealPlan.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "MealPlan.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
# ---------- Runtime stage ----------
|
# ---------- Runtime stage ----------
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Run as the non-root user shipped in the aspnet image.
|
# Run as the non-root user shipped in the aspnet image.
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ function toRecipeDetail(meal: DietGeneratorDraftMeal): RecipeDetailModel {
|
|||||||
ingredients: (meal.ingredients ?? []).map((ingredient) => ({
|
ingredients: (meal.ingredients ?? []).map((ingredient) => ({
|
||||||
id: ingredient.id,
|
id: ingredient.id,
|
||||||
name: ingredient.name,
|
name: ingredient.name,
|
||||||
amountGrams: ingredient.amountGrams,
|
amountGrams: ingredient.amountGrams ?? null,
|
||||||
unit: ingredient.unit,
|
unit: ingredient.unit ?? null,
|
||||||
sortOrder: ingredient.sortOrder,
|
sortOrder: ingredient.sortOrder,
|
||||||
catalogItemId: null,
|
catalogItemId: null,
|
||||||
})),
|
})),
|
||||||
|
|||||||
Reference in New Issue
Block a user