Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 3 additions & 6 deletions ShowcaseProject/ShowcaseFrontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS dev
WORKDIR /app


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"]
CMD ["dotnet", "watch", "run", "--no-launch-profile", "--urls", "http://+:80"]

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

Expand Down
2 changes: 1 addition & 1 deletion ShowcaseProject/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
build:
context: .
dockerfile: ShowcaseFrontend/Dockerfile
target: "dev"
target: "build"
container_name: showcasefrontend
ports:
- "8080:80"
Expand Down
Loading