refactor: remove duplication in build arguments
This commit is contained in:
parent
f9f3d23b7f
commit
630ee3a8c6
|
@ -1,8 +1,11 @@
|
||||||
|
x-build-args: &default-build-args
|
||||||
|
context: .
|
||||||
|
dockerfile: tools/docker/images/Dockerfile
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
build:
|
build:
|
||||||
context: .
|
<<: *default-build-args
|
||||||
dockerfile: tools/docker/images/Dockerfile
|
|
||||||
target: app
|
target: app
|
||||||
command: generate --port "${SCULPIN_PORT:-80}" --url "${SCULPIN_URL:-http://localhost}" --env "${SCULPIN_ENV:-dev}" "${SCULPIN_GENERATE_ARGS}"
|
command: generate --port "${SCULPIN_PORT:-80}" --url "${SCULPIN_URL:-http://localhost}" --env "${SCULPIN_ENV:-dev}" "${SCULPIN_GENERATE_ARGS}"
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -18,8 +21,7 @@ services:
|
||||||
|
|
||||||
assets:
|
assets:
|
||||||
build:
|
build:
|
||||||
context: .
|
<<: *default-build-args
|
||||||
dockerfile: tools/docker/images/Dockerfile
|
|
||||||
target: assets
|
target: assets
|
||||||
volumes:
|
volumes:
|
||||||
- assets:/node/source/build
|
- assets:/node/source/build
|
||||||
|
|
Loading…
Reference in a new issue