-
Notifications
You must be signed in to change notification settings - Fork 536
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The container spec build spec attribute "dockerfile" is being ignored: https://github.com/compose-spec/compose-spec/blob/main/build.md#dockerfile
Only "Dockerfile" and "Containerfile" are supported
To Reproduce
services:
postgres:
build:
context: postgres
dockerfile: Containerfile.custom
The above should work, but only works if the dockerfile is named "Dockerfile" or "Containerfile"
When running podman-compose up
The error is:
Error: no Containerfile or Dockerfile specified or found in context directory, {CONTEXT}: The system cannot find the file specified. ERROR:podman_compose:Build command failed
Expected behavior
Any custom Dockerfile name should be allowed
Actual behavior
Will only work if the Dockerfile is named "Dockerfile" or "Containerfile"
Environment:
- OS: WSL
- podman version: 5.6.1
- podman compose version: 1.5.0
MisterXY89
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working