Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Jan 8, 2025
1 parent a7595e1 commit 07f3028
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/cleanaspire-standalone:${{ steps.version.outputs.version }} -f src/CleanAspire.ClientApp/Dockerfile .
docker push ${{ secrets.DOCKER_USERNAME }}/cleanaspire-standalone:${{ steps.version.outputs.version }}
- name: Build and push CleanAspire.WebApp image
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/cleanaspire-webapp:${{ steps.version.outputs.version }} -f src/CleanAspire.WebApp/Dockerfile .
Expand Down
4 changes: 4 additions & 0 deletions src/CleanAspire.ClientApp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ RUN dotnet restore "src/CleanAspire.ClientApp/CleanAspire.ClientApp.csproj"
RUN dotnet workload install wasm-tools --skip-manifest-update
RUN dotnet workload update

# Clean and build
RUN dotnet clean "src/CleanAspire.ClientApp/CleanAspire.ClientApp.csproj"
RUN dotnet workload install wasm-tools --skip-manifest-update

# Copy the entire source code and build the application in Release mode
COPY . .
RUN dotnet publish -c Release -o /app/publish
Expand Down

0 comments on commit 07f3028

Please sign in to comment.