-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy path.dockerignore
More file actions
28 lines (26 loc) · 1.22 KB
/
Copy path.dockerignore
File metadata and controls
28 lines (26 loc) · 1.22 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
# This file controls what docker/BuildKit may send to the daemon when
# the build context is the repository root. Today only the dogfood
# base images at dogfood/coder/ubuntu-{22,26}.04/Dockerfile.base use the
# repo root as context; other docker builds in this repo
# (scripts/Dockerfile, scripts/Dockerfile.base, scripts/ironbank/Dockerfile)
# cd into a temporary directory and have their own contexts.
#
# We use an allowlist so the context stays small and predictable, and
# new top-level files added to the repo do not silently inflate every
# dogfood image build (depot.dev uploads the context over the network).
# Exclude everything by default; only the paths that the dogfood
# Dockerfiles actually consume are re-included below. Re-including a
# file under a directory requires re-including the directory itself.
**
# Re-allow paths the dogfood Dockerfile.base files consume.
!dogfood
!dogfood/coder
!dogfood/coder/ubuntu-22.04
!dogfood/coder/ubuntu-22.04/Dockerfile.base
!dogfood/coder/ubuntu-22.04/configure-chrome-flags.sh
!dogfood/coder/ubuntu-22.04/files
!dogfood/coder/ubuntu-22.04/files/**
!dogfood/coder/ubuntu-26.04
!dogfood/coder/ubuntu-26.04/Dockerfile.base
!dogfood/coder/ubuntu-26.04/files
!dogfood/coder/ubuntu-26.04/files/**