-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dockerignore
More file actions
71 lines (63 loc) · 2.89 KB
/
.dockerignore
File metadata and controls
71 lines (63 loc) · 2.89 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
# ─────────────────────────────────────────────────────────────────────────────
# .dockerignore
#
# Prevents sensitive files and unnecessary build artifacts from being copied
# into the Docker image by the `COPY . .` instruction in the Dockerfile.
#
# IMPORTANT: Always keep this file in the repository root. Without it,
# `docker build` sends every file in this directory to the Docker daemon,
# including any local `.env` that holds real credentials. Those secrets
# would then be baked into an image layer and could be read by anyone who
# can pull or `docker inspect` the image.
#
# How to supply secrets at runtime instead of baking them in:
# docker run --rm \
# -e DISCORD_TOKEN=your_token_here \
# -e YOUTUBE_API_KEY=your_key_here \
# devrel-discord-bot
#
# Or with docker-compose, use an env_file directive that is itself listed
# here so it is never copied into the image:
# env_file: [.env] # in docker-compose.yml – file stays on the host only
# ─────────────────────────────────────────────────────────────────────────────
# ── Secrets – NEVER bake into the image ──────────────────────────────────────
.env
.env.*
!.env.example
# ── Git history (large and not needed at runtime) ────────────────────────────
.git
.gitignore
# ── Python byte-code and caches ───────────────────────────────────────────────
__pycache__/
*.py[cod]
*.pyo
*.pyd
*.so
*.egg
*.egg-info/
dist/
build/
.eggs/
*.whl
# ── Virtual environments ──────────────────────────────────────────────────────
.venv/
venv/
env/
ENV/
# ── Test / coverage artefacts ─────────────────────────────────────────────────
.pytest_cache/
.coverage
htmlcov/
# ── Editor / OS metadata ──────────────────────────────────────────────────────
.DS_Store
Thumbs.db
.idea/
.vscode/
*.swp
*.swo
# ── Runtime data (re-created by the bot on first run) ────────────────────────
data/
# ── Documentation (not needed inside the container) ──────────────────────────
README.md
SETUP.md
LICENSE