Skip to content

Commit

Permalink
Fix Dockerfile to allow successful build (#15784)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed Apr 18, 2024
1 parent 9b7468b commit dc6729b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .dockerignore
Expand Up @@ -3,6 +3,8 @@

# Except src for building
!./src/*
!Directory.Build.props

# TODO : Remove this line when Docker Buildkit works in Windows
!/.build/release/*

Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Expand Up @@ -7,7 +7,9 @@ WORKDIR /app

# Copy and build
COPY ./src /app
RUN dotnet publish /app/OrchardCore.Cms.Web -c Release -o ./build/release --framework net8.0
COPY Directory.Build.props /

RUN dotnet publish /app/OrchardCore.Cms.Web -c Release -o ./build/release --framework net8.0 /p:RunAnalyzers=false

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:8.0-nanoserver-1809 AS build_windows
Expand Down

0 comments on commit dc6729b

Please sign in to comment.