Skip to content

Commit 7feba43

Browse files
authored
Merge pull request #16 from Programeerik/test-acceptance
Even Simpler Dockerfile
2 parents 9e2c591 + 43cb572 commit 7feba43

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ShowcaseProject/ShowcaseFrontend/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS dev
22
WORKDIR /app
3-
COPY ShowcaseFrontend/ShowcaseFrontend.csproj ShowcaseFrontend/
4-
RUN dotnet restore ShowcaseFrontend/ShowcaseFrontend.csproj
3+
4+
COPY . .
5+
RUN dotnet restore ./ShowcaseFrontend//ShowcaseFrontend.csproj
6+
57
COPY ShowcaseFrontend/. ShowcaseFrontend/
68
WORKDIR /app/ShowcaseFrontend
79
CMD ["dotnet", "watch", "run", "--no-launch-profile", "--urls", "http://0.0.0.0:80"]
810

911
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
1012
WORKDIR /src
11-
COPY ShowcaseFrontend/ShowcaseFrontend.csproj ShowcaseFrontend/
12-
RUN dotnet restore ShowcaseFrontend/ShowcaseFrontend.csproj
13-
COPY ShowcaseFrontend/. ShowcaseFrontend/
13+
COPY . .
14+
RUN dotnet restore ./ShowcaseFrontend/ShowcaseFrontend.csproj
1415
WORKDIR /src/ShowcaseFrontend
1516
RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false
1617

0 commit comments

Comments
 (0)