docker build fix

This commit is contained in:
2026-03-13 14:31:26 -03:00
parent 3eeedebb15
commit 5ceb8172ea
4 changed files with 34 additions and 2 deletions

30
.dockerignore Normal file
View File

@@ -0,0 +1,30 @@
# Python
.venv/
__pycache__/
*.pyc
*.egg-info/
.pytest_cache/
# Node
node_modules/
ui/*/node_modules/
ui/*/dist/
# Media (9.8GB — mounted via volume, never needed in image)
media/
# Git
.git/
# IDE / OS
.idea/
.vscode/
*.swp
.DS_Store
# Docker
ctrl/docker-compose.yml
# Docs
docs/
*.md

View File

@@ -5,6 +5,6 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# No COPY . . — code is volume-mounted in dev (..:/app)
CMD ["python", "admin/manage.py", "runserver", "0.0.0.0:8000"]

View File

@@ -9,6 +9,6 @@ WORKDIR /app
COPY requirements.txt requirements-worker.txt ./
RUN pip install --no-cache-dir -r requirements-worker.txt
COPY . .
# No COPY . . — code is volume-mounted in dev (..:/app)
CMD ["celery", "-A", "admin.mpr", "worker", "--loglevel=info"]

View File

@@ -0,0 +1,2 @@
node_modules/
dist/