feat: specify build targets for backend and frontend in Docker Compose
Some checks failed
Build and Deploy Thoughts / build-and-deploy-local (push) Failing after 4s
Some checks failed
Build and Deploy Thoughts / build-and-deploy-local (push) Failing after 4s
This commit is contained in:
@@ -22,6 +22,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./thoughts-backend
|
context: ./thoughts-backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
target: runtime
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- RUST_LOG=info
|
- RUST_LOG=info
|
||||||
@@ -43,6 +44,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./thoughts-frontend
|
context: ./thoughts-frontend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
target: release
|
||||||
args:
|
args:
|
||||||
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
|
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
Reference in New Issue
Block a user