refactor: remove duplication in build arguments

This commit is contained in:
Oliver Davies 2021-11-11 08:17:09 +00:00
parent f9f3d23b7f
commit 630ee3a8c6

View file

@ -1,8 +1,11 @@
x-build-args: &default-build-args
context: .
dockerfile: tools/docker/images/Dockerfile
services:
app:
build:
context: .
dockerfile: tools/docker/images/Dockerfile
<<: *default-build-args
target: app
command: generate --port "${SCULPIN_PORT:-80}" --url "${SCULPIN_URL:-http://localhost}" --env "${SCULPIN_ENV:-dev}" "${SCULPIN_GENERATE_ARGS}"
volumes:
@ -18,8 +21,7 @@ services:
assets:
build:
context: .
dockerfile: tools/docker/images/Dockerfile
<<: *default-build-args
target: assets
volumes:
- assets:/node/source/build