compose: propagate BASE_IMAGE build-arg via env; verified default and mirror BuildKit builds
This commit is contained in:
@@ -5,6 +5,8 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
BASE_IMAGE: ${BASE_IMAGE:-python:3.12-slim}
|
||||||
container_name: delphi-database-dev
|
container_name: delphi-database-dev
|
||||||
ports:
|
ports:
|
||||||
- "${EXTERNAL_PORT:-6920}:8000"
|
- "${EXTERNAL_PORT:-6920}:8000"
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
delphi-db:
|
delphi-db:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
args:
|
||||||
|
BASE_IMAGE: ${BASE_IMAGE:-python:3.12-slim}
|
||||||
container_name: delphi-database
|
container_name: delphi-database
|
||||||
ports:
|
ports:
|
||||||
- "${EXTERNAL_PORT:-6920}:8000"
|
- "${EXTERNAL_PORT:-6920}:8000"
|
||||||
|
|||||||
Reference in New Issue
Block a user