-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.dockerignore
More file actions
70 lines (57 loc) · 2.2 KB
/
Copy path.dockerignore
File metadata and controls
70 lines (57 loc) · 2.2 KB
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
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.
# Ignore git directory.
/.git/
/.gitignore
# Ignore bundler config.
/.bundle
# Ignore all environment files.
/.env*
# Ignore all default key files.
/config/master.key
/config/credentials/*.key
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/.keep
# Ignore storage (uploaded files in development).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/.keep
# Ignore CI service files.
/.github
# Ignore Kamal files.
/config/deploy*.yml
/.kamal
# Ignore development files
/.devcontainer
# Ignore Docker-related files
/.dockerignore
/Dockerfile*
# Extensions ARE baked into the core image. Nothing excludes app/extensions/ --
# the blanket `COPY . .` in Dockerfile carries every app/extensions/<id>/ into
# /rails, so an extension registered in BUILTIN_EXTENSION_CLASSES resolves in a
# deployed container and an operator turns it on from Settings -> Experimental.
#
# Do not add an exclusion here. Removability is a property of the SOURCE TREE
# (`rm -rf app/extensions/<id>/` and the registry's safe_constantize skip drops
# the feature), not of the image, and stripping the directory at build time only
# guaranteed the one build that is supposed to carry an internal-only feature
# never did. scripts/assert-extensions-shipped.sh asserts the outcome from
# Dockerfile and from CI's image_includes_extensions job, so an exclusion added
# here fails the build rather than silently disabling the seam again.
# See docs/operate/deploying.md, "Extensions do ship in the image".
# The documentation site is a standalone Astro project deployed to Cloudflare
# Pages. The Rails image never serves it.
#
# This line is all that stands between the docs and the blanket `COPY . .` in
# Dockerfile, so it does not stand alone: scripts/assert-docs-excluded.sh asserts
# the outcome, from Dockerfile and from CI's image_excludes_docs job. Move the
# docs and you must move this line with them -- the checks find the docs by
# content, not by this path, and will fail the build.
# See docs/operate/deploying.md, "The docs never ship in the image".
/docs