upserve / docker-api

A lightweight Ruby client for the Docker Remote API
MIT License
1.09k stars 287 forks source link

Handle exclusions when ignoring files #541

Open ghostsquad opened 5 years ago

ghostsquad commented 5 years ago

Always exclude Dockerfile and .dockerignore from being ignored.

https://docs.docker.com/engine/reference/builder/#dockerignore-file

You can even use the .dockerignore file to exclude the Dockerfile and .dockerignore files. These files are still sent to the daemon because it needs them to do its job. But the ADD and COPY instructions do not copy them to the image.

resolves #484

kiela commented 5 years ago

@tlunter Any chance to get it merged in?

ianfixes commented 3 years ago

What does this PR need in order to be accepted?