Merge pull request 'Fixed dockerfile' (#5) from migration into master
Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
+3
-3
@@ -2,11 +2,11 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ["../nuget.config", "./"]
|
COPY ["nuget.config", "./"]
|
||||||
COPY ["../Shop/Shop.csproj", "Shop/"]
|
COPY ["Shop/Shop.csproj", "Shop/"]
|
||||||
RUN dotnet restore "Shop/Shop.csproj" --configfile nuget.config
|
RUN dotnet restore "Shop/Shop.csproj" --configfile nuget.config
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN dotnet publish "../Shop/Shop.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "Shop/Shop.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
# Stage 2: Final Image
|
# Stage 2: Final Image
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||||
|
|||||||
Reference in New Issue
Block a user