-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dockerignore
More file actions
71 lines (59 loc) · 2.58 KB
/
.dockerignore
File metadata and controls
71 lines (59 loc) · 2.58 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
71
# Docker build context exclusions
# This prevents platform-specific build artifacts from being copied into Docker builds
# ==============================================================================
# Build Artifacts (platform-specific object files, binaries, etc.)
# ==============================================================================
# Platform-specific build artifacts (dev/prod builds with .o files, binaries)
packages/binject/build/
packages/binpress/build/
packages/binflate/build/
packages/bin-infra/build/
packages/node-smol-builder/build/
# Keep pre-built libraries needed for Docker builds
!packages/build-infra/build/downloaded/
# Compiled binaries
packages/binpress/out/
packages/binflate/out/
packages/binject/out/
# Distribution binaries (E2E test artifacts) - but keep upstream vendored dist/ files
**/dist/
!packages/*/upstream/**/dist/
# ==============================================================================
# Git and CI
# ==============================================================================
.git/
.github/
# Dockerfiles reference .github/scripts/build-static-openssl.sh and ensure-zstd.sh
# via COPY/RUN. When a parent is excluded (".github/"), re-including its contents
# requires TWO rules — BOTH lines must stay, or the scripts never reach the
# build context. .dockerignore only treats '#' at start-of-line as a comment,
# so each explanation lives on its own line above the rule.
#
# Re-include the directory entry so Docker traverses into it.
!.github/scripts/
# Re-include every file inside that directory at any depth.
!.github/scripts/**
# ==============================================================================
# Dependencies and Caches (re-installed inside container)
# ==============================================================================
# Dockerfiles run `pnpm install --frozen-lockfile` themselves, so the host
# node_modules tree (hundreds of MB) is dead weight in the build context.
**/node_modules/
.cache/
.ccache/
**/coverage/
# ==============================================================================
# Logs and Temporary Files
# ==============================================================================
*.log
**/*.log
.DS_Store
*.swp
*.swo
*~
# ==============================================================================
# IMPORTANT: Ensure upstream submodule source is copied
# ==============================================================================
# The .gitignore excludes **/upstream/ but Docker builds NEED these files.
# Explicitly ensure they are NOT excluded from the Docker build context.
!packages/*/upstream/