gitpod
gitpod copied to clipboard
custom image using .gitpod.Dockerfile not loading custom docker ignore file
Bug description
I have a Dockerfile and a .dockerignore file in the root of the project. I am also using .gitpod.Dockerfile to build a custom workspace image
By default, the gitpod docker build process uses the .dockerignore file of the project, but I need a different ignorefile.
According to the documentation here https://docs.docker.com/build/building/context/#dockerignore I should be able to create a file named .gitpod.Dockerfile.dockerignore
However, this file does not seem to be loaded, and the default .dockerignore file is used instead
Steps to reproduce
Create a .dockerignore file with
!* dist
Create a .gitpod.Dockerfile.dockerignore file !* src
when you try and build a custom image, the "src" folder is not in the docker context but the "dist" folder is
Workspace affected
No response
Expected behavior
docker build to use the gitpod specific dockerignore file
Example repository
No response
Anything else?
No response
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.