GoogleContainerTools / GoogleContainerTools/skaffold

Skaffold complains about the docker file being outside the docker build context

Open
#4,328 4 comments 1 reaction 0 assignees View on GitHub
kind/feature-request priority/p3
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior
That skaffold has no more restrictions on the location of the dockerfile than docker build has
### Actual behavior
Skaffold complains that the dockerfile is outside the build context
### Information

```yaml
apiVersion: skaffold/v2beta4
kind: Config
metadata:
name: hobbes
build:
tagPolicy:
sha256: {}
artifacts:
- image: az
context: workers/az.worker/
docker:
dockerfile: ../../docker/Dockerfile.worker
```

### Steps to reproduce the behavior
any setup where the docker file is outside of the specified context. If the context folder doesn't exist Skaffold picks the right dockerfile and starts the build and will only fail if the the build tries to get files from the context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.