-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker build failed #15648
Comments
Apart from publishing to Docker Hub, what does the preview build do differently that it works? |
did the preview use dockerfile |
CLICK the link of -CI, I could not find dockerfile which COPY ./src /app on line 9 |
I confirm the Dockerfile is broken because Directory.Build.props is not imported. The |
For @Piedone the preview in CI is actually copying the already built folder that the CI produced. We have two docker files in the root folder. |
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Go to 'the root folder of cms.web'
docker build --build-arg TARGETOS=linux -t linuxoc .
See error
/app/OrchardCore/Directory.Build.props(3,3): error MSB4019: The imported project "/Directory.Build.props" was not found. Confirm that the expression in the Import declaration "../../Directory.Build.props" is correct, and that the file exists on disk. [/app/OrchardCore/OrchardCore.Application.Cms.Targets/OrchardCore.Application.Cms.Targets.csproj]
24.28 /app/OrchardCore/Directory.Build.props(3,3): error MSB4019: The imported project "/Directory.Build.props" was not found. Confirm that the expression in the Import declaration "../../Directory.Build.props" is correct, and that the file exists on disk. [/app/OrchardCore/OrchardCore.AuditTrail.Abstractions/OrchardCore.AuditTrail.Abstractions.csproj]
24.29 /app/OrchardCore.Modules/Directory.Build.props(3,3): error MSB4019: The imported project "/Directory.Build.props" was not found. Confirm that the expression in the Import declaration "../../Directory.Build.props" is correct, and that the file exists on disk. [/app/OrchardCore.Modules/OrchardCore.Autoroute/OrchardCore.Autoroute.csproj]
24.29 /app/OrchardCore.Modules/Directory.Build.props(3,3): error MSB4019: The imported project "/Directory.Build.props" was not found. Confirm that the expression in the Import declaration "../../Directory.Build.props" is correct, and that the file exists on disk. [/app/OrchardCore.Modules/OrchardCore.Alias/OrchardCore.Alias.csproj]
24.29 /app/OrchardCore/Directory.Build.props(3,3): error MSB4019: The imported project "/Directory.Build.props" was not found. Confirm that the expression in the Import declaration "../../Directory.Build.props" is correct, and that the file exists on disk. [/app/OrchardCore/OrchardCore.Admin.Abstractions/OrchardCore.Admin.Abstractions.csproj]
Expected behavior
A clear and concise description of what you expected to happen.
4 because file Directory.Build.props under first OrchardCore is outside src which could not be copied to /app
by this COPY ./src /app
The text was updated successfully, but these errors were encountered: