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
|
.git
|
||||||
backend
|
|
||||||
frontend/node_modules
|
frontend/node_modules
|
||||||
frontend/dist
|
frontend/dist
|
||||||
frontend/.svelte-kit
|
frontend/.svelte-kit
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|||||||
pip install --no-cache-dir -r /app/requirements.txt
|
pip install --no-cache-dir -r /app/requirements.txt
|
||||||
|
|
||||||
COPY backend/ /app/backend/
|
COPY backend/ /app/backend/
|
||||||
COPY .dockerignore /app/.dockerignore 2>/dev/null || true
|
|
||||||
|
|
||||||
ENV PYTHONPATH=/app \
|
ENV PYTHONPATH=/app \
|
||||||
PYTHONDONTWRITEBYTECODE=1 \
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
services:
|
services:
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: ..
|
||||||
dockerfile: frontend/Dockerfile
|
dockerfile: frontend/Dockerfile
|
||||||
ports: ["127.0.0.1:${FRONTEND_PORT:-18080}:80"]
|
ports: ["127.0.0.1:${FRONTEND_PORT:-18080}:80"]
|
||||||
depends_on: [fastapi]
|
depends_on: [fastapi]
|
||||||
@@ -22,7 +22,7 @@ services:
|
|||||||
|
|
||||||
fastapi:
|
fastapi:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: ..
|
||||||
dockerfile: backend/Dockerfile
|
dockerfile: backend/Dockerfile
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|||||||
Reference in New Issue
Block a user