-
Notifications
You must be signed in to change notification settings - Fork 3
/
.dockerignore
103 lines (96 loc) · 2.66 KB
/
.dockerignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
## IMPORTANT ##
#
# Usually a pattern here also belongs in your `.gitignore` file and vice versa.
#
# Note that Docker's ignore syntax is slightly different to Git's. The main
# difference is that Git interprets patterns without a leading slash as applying
# to any subdirectory, while Docker interprets them as relative to the project
# root directory. To resolve that, a `.dockerignore` should prefix those
# patterns with `**/`. This is also compatible with Git.
#
# This file is NOT a substitute for being intentional in copying directories to
# a Docker image. Avoid use of `COPY . <destination>` in your `Dockerfile`s.
#
## How to use this file
#
# Add patterns to the section they apply to, sorted by:
#
# 1. absolute paths to or patterns for files (with a `/` prefix)
# 2. absolute paths to or patterns for directories
# 3. relative paths to or patterns for files (with a `**/` prefix)
# 4. relative paths to or patterns for directories
# 5. pattern exceptions (sorted as above)
#
# Sort them alphanumerically within each section.
#
# If no section fits, create one. No path or pattern should exist without a
# section or label.
#
## Sensitive files
#
# Note that these patterns will ignore any files matched by their equivalents in
# `.gitignore`. This is probably what you want in many cases, but you may need
# to add exceptions here if you really want to include them in your Docker
# images. An exception is a more specific pattern (ideally a fully specified
# path without any wildcards) prefixed with a `!` and must be defined after the
# pattern it's excepting (which will happen naturally if you're following the
# sort order above).
#
### Databases
**/*.db*
**/*.dump*
**/*.sql*
**/*.sqlite3*
### Environment variables
**/.env
**/.env.*
### Logs
**/*.log*
### Secrets and keys
**/*.crt*
**/*.key*
**/*.pem*
### Spreadsheet data
**/*.bks*
**/*.csv*
**/*.dex*
**/*.numbers*
**/*.ods*
**/*.ots*
**/*.tsv*
**/*.xlr*
**/*.xls*
### Terraform
**/.terraformrc*
**/terraform.rc*
**/*.tfstate*
**/*.tfvars*
**/.terraform/
### XML data
**/*.xml*
## Dependencies
/Brewfile.lock.json
/node_modules/
/vendor/bundle/
## Temporary files
/coverage/
/log/
**/tmp/
## Build artefacts
/public/assets/
## Docker specific patterns ##
#
### Dependencies
/Brewfile
### Workflow configuration
/.github/
### git stuff
/.git/
### Allow local authority seeds
!db/seeds/local_authorities.csv
# Allow GIAS Establishment & Group fixture files
!/spec/fixtures/files/gias_establishment_data_bad.csv
!/spec/fixtures/files/gias_establishment_data_good.csv
!/spec/fixtures/files/gias_establishment_data_empty.csv
!/spec/fixtures/files/gias_establishment_data_good_with_bad_row.csv
!/spec/fixtures/files/gias_groups_data_good.csv