fix(deploy): restore context: .. in compose (relative to deploy/ file); remove invalid || from backend/Dockerfile; prune backend from .dockerignore so COPY succeeds

This commit is contained in:
2026-09-19 15:53:49 -07:00
parent 39ee82bdf8
commit 6aaad81583
3 changed files with 2 additions and 4 deletions
-1
View File
@@ -1,5 +1,4 @@
.git
backend
frontend/node_modules
frontend/dist
frontend/.svelte-kit
-1
View File
@@ -13,7 +13,6 @@ RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r /app/requirements.txt
COPY backend/ /app/backend/
COPY .dockerignore /app/.dockerignore 2>/dev/null || true
ENV PYTHONPATH=/app \
PYTHONDONTWRITEBYTECODE=1 \
+2 -2
View File
@@ -14,7 +14,7 @@
services:
frontend:
build:
context: .
context: ..
dockerfile: frontend/Dockerfile
ports: ["127.0.0.1:${FRONTEND_PORT:-18080}:80"]
depends_on: [fastapi]
@@ -22,7 +22,7 @@ services:
fastapi:
build:
context: .
context: ..
dockerfile: backend/Dockerfile
env_file:
- .env