Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to add custom ignores to .dockerignore #103

Open
tmaier opened this issue Jun 4, 2024 · 1 comment
Open

Allow to add custom ignores to .dockerignore #103

tmaier opened this issue Jun 4, 2024 · 1 comment

Comments

@tmaier
Copy link
Contributor

tmaier commented Jun 4, 2024

My current .dockerignore file is vast. Possibly with a couple of relicts, but I want to carry over parts of it.
I don't expect dockerfile-rails to expose every minor edge case as a config option.

I would like to have the chance to provide my own ignores.

/.adr-dir
/.bundle/
/.devcontainer/
/.dockerignore
/.dpl
/.editorconfig
.env*
!.env.example
!.env.test
/.git*
/.gitlab-ci.yml
/.gitlab/
/.idea/
.overmind.sock
.pnp.js
/.pnp/
/.rspec
/.sass-cache
/.slugignore
/.vscode/
/.yarn/
/**/.DS_Store
/**/.gitignore
/app.json
/Aptfile
/bin/setup
CHANGELOG.md
/charts/
/config/fly.*.toml
/coverage/
/doc/
!/doc/api/*/swagger.yaml
/docker-compose.*.yml
/docker-compose.yml
/Dockerfile
/fly.toml
/log/
/node_modules/
/Procfile
/Procfile.dev
/public/
!/public/robots.txt
!/public/.well-known/
/terraform/
/tmp/
/yarn-error.log

What are popular ignores you may find in my .dockerignore-file?

  • VS Code and Devcontainer
  • IaC (helm, terraform)
  • CI/CD (.gitlab and .gitlab-ci.yml)

Prior art

This has been requested in the past as an alternative approach for #87.

@rubys
Copy link
Collaborator

rubys commented Jun 5, 2024

Also related: --instructions=path, see Advanced Customization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants