Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions ShowcaseProject/ShowcaseFrontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS dev
WORKDIR /app
COPY ShowcaseFrontend/ShowcaseFrontend.csproj ShowcaseFrontend/
RUN dotnet restore ShowcaseFrontend/ShowcaseFrontend.csproj

COPY . .
RUN dotnet restore ./ShowcaseFrontend//ShowcaseFrontend.csproj

COPY ShowcaseFrontend/. ShowcaseFrontend/
WORKDIR /app/ShowcaseFrontend
CMD ["dotnet", "watch", "run", "--no-launch-profile", "--urls", "http://0.0.0.0:80"]

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ShowcaseFrontend/ShowcaseFrontend.csproj ShowcaseFrontend/
RUN dotnet restore ShowcaseFrontend/ShowcaseFrontend.csproj
COPY ShowcaseFrontend/. ShowcaseFrontend/
COPY . .
RUN dotnet restore ./ShowcaseFrontend/ShowcaseFrontend.csproj
WORKDIR /src/ShowcaseFrontend
RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false

Expand Down