fly-apps / fly-apps/dockerfile-rails

Allow to add custom ignores to .dockerignore

Open
#103 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
559
Forks
42
PR merge metrics
No merged PRs in 30d

Description

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.

```dockerignore
/.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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.