fix: use root build context in docker-compose.prod.yml
Dockerfiles reference monorepo subdirectories (frontend/, backend/) but the prod compose specified ./frontend and ./backend as build contexts. The containers were running because they were built from docker-compose.yml (dev) which already had root context. Rebuilds with --build were broken.
This commit is contained in:
@@ -66,8 +66,8 @@ services:
|
|||||||
# ==========================================
|
# ==========================================
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
context: ./backend
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: ./backend/Dockerfile
|
||||||
container_name: coop-backend
|
container_name: coop-backend
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
@@ -126,8 +126,8 @@ services:
|
|||||||
# ==========================================
|
# ==========================================
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: ./frontend/Dockerfile
|
||||||
args:
|
args:
|
||||||
- NEXT_PUBLIC_API_URL=https://coop.hobokenchicken.com
|
- NEXT_PUBLIC_API_URL=https://coop.hobokenchicken.com
|
||||||
- NEXT_PUBLIC_SOLANA_NETWORK=devnet
|
- NEXT_PUBLIC_SOLANA_NETWORK=devnet
|
||||||
|
|||||||
Reference in New Issue
Block a user