GoogleContainerTools / GoogleContainerTools/skaffold

Is there a way to ignore `.dockerignore` for sync?

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

Description

### Question
We have a repository for our frontend.
Frontend is legacy and is being built by `gulp`.
We have our `dist` directory in `.dockerignore` file in order for it to not being copied during build of the image.

But i want to be able to run `npm run dev` locally (which rebuilds static files in `dist` directory when code is changed) and have changes in `dist` directory propagated to my container.
I want to use Skaffold sync rules for that.

But as long as this directory is in `.dockerignore`, it does not get synchronized.
Is there any way to ignore `.dockerignore` rules during sync phase?

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.