-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.dockerignore
More file actions
37 lines (32 loc) · 1.37 KB
/
.dockerignore
File metadata and controls
37 lines (32 loc) · 1.37 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
# This file contains paths, .gitignore-style, that will be excluded from being
# copied into a container image during build.
# cf. https://docs.docker.com/build/concepts/context/#dockerignore-files
# Start with a clean slate by excluding all paths.
*
# Selectively re-include paths to copy into the container. This list should
# track and match the bind mounts for the "frontend" service in the
# docker-compose.yml file.
!/ynr/
!/data/
!/manage.py
!/scripts/
!/gulpfile.js
!/package.json
!/package-lock.json
!/pyproject.toml
!/uv.lock
!/.coveragerc
# Paths overriding earlier re-inclusions.
# The content inside /ynr/media/ is bind-mounted into the container when
# running as part of a compose stack, as part of the bind-mount of its parent,
# /ynr/. However its contents *should not* be statically copied into the
# container image because they're either irrelevant/empty (in non-development
# environments), or potentially very large (in development environments).
/ynr/media/
# Whilst we're developing this image locally, this file mustn't be included in
# the image. Later, when the image is managed in CI, this file won't exist (as
# it's gitignored), and this line might be deleted.
/ynr/settings/local.py
# Paths that don't need to be part of the image, but also need not to be
# excluded when explicitly referenced by build-time COPY and ADD commands.
!/container/build/system-packages