Skip to content

Commit b3c9fa2

Browse files
mattstrattonclaude
andcommitted
Fix static files: include static/ dir in Docker build
The brain logo wasn't being collected by collectstatic because .dockerignore was too aggressive and STATICFILES_DIRS referenced directories that might not exist. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 92ee17e commit b3c9fa2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.dockerignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ __pycache__
44
node_modules
55
frontend/dist
66
.env
7-
.env.*
7+
.env.prod
88
media/
99
staticfiles/
10-
*.md
1110
deploy/
1211
.claude/

config/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137

138138
# Static files
139139
STATIC_URL = "/static/"
140-
STATICFILES_DIRS = [BASE_DIR / "static", BASE_DIR / "frontend" / "dist"]
140+
STATICFILES_DIRS = [d for d in [BASE_DIR / "static", BASE_DIR / "frontend" / "dist"] if d.is_dir()]
141141
STATIC_ROOT = BASE_DIR / "staticfiles"
142142
STORAGES = {
143143
"staticfiles": {

0 commit comments

Comments
 (0)