Skip to content

Instantly share code, notes, and snippets.

@neckhair
Created November 15, 2016 09:48
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save neckhair/ace5d1679dd896b71403fda4bc217b9e to your computer and use it in GitHub Desktop.
Save neckhair/ace5d1679dd896b71403fda4bc217b9e to your computer and use it in GitHub Desktop.
Sample dockerignore for a Rails app
.git
.gitignore
README.md
#
# OS X
#
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
#
# Rails
#
.env
.env.sample
*.rbc
capybara-*.html
log
tmp
db/*.sqlite3
db/*.sqlite3-journal
public/system
coverage/
spec/tmp
**.orig
.bundle
.ruby-version
.ruby-gemset
.rvmrc
# if using bower-rails ignore default bower_components path bower.json files
vendor/assets/bower_components
*.bowerrc
bower.json
@zsan
Copy link

zsan commented Sep 21, 2019

how about config/database.yml ? and config/secrets.yml ?
Sorry fo the silly question :)

I thought when we ignore the files then we can copied later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment