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
1 change: 1 addition & 0 deletions .github/workflows/azure-container-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- name: Build and push container image to registry
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: ./ShowcaseProject
push: true
tags: ghcr.io/${{ env.REPO }}:${{ github.sha }}
file: ./ShowcaseProject/ShowcaseFrontend/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
- uses: actions/checkout@v4

- name: Build the Frontend Docker image
run: docker build ShowcaseProject --file ShowcaseProject/ShowcaseFrontend/Dockerfile --tag my-image-name:$(date +%s)
run: docker build --file ShowcaseProject/ShowcaseFrontend/Dockerfile --tag my-image-name:$(date +%s) ShowcaseProject
7 changes: 3 additions & 4 deletions ShowcaseProject/ShowcaseFrontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ WORKDIR /app/ShowcaseFrontend
CMD ["dotnet", "watch", "run", "--no-launch-profile", "--urls", "http://+: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/
WORKDIR /src/ShowcaseFrontend
COPY ShowcaseFrontend/ShowcaseFrontend.csproj ./
RUN dotnet restore
COPY ShowcaseFrontend/. ./
RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
Expand Down
Loading