-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy path.dockerignore
33 lines (29 loc) · 1.16 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
# 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/
!/requirements/
!/requirements.txt
!/manage.py
!/Makefile
!/scripts/
!/gulpfile.js
!/package.json
!/package-lock.json
!/pyproject.toml
# Paths overriding early 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/
# 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