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:
@@ -1,5 +1,4 @@
|
||||
.git
|
||||
backend
|
||||
frontend/node_modules
|
||||
frontend/dist
|
||||
frontend/.svelte-kit
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user