Oliver Davies
b0990f7edb
Move Markdownlint into the main Dockerfile and a service to the Docker Compose override file.
33 lines
558 B
Plaintext
33 lines
558 B
Plaintext
x-assets: &default-assets
|
|
build:
|
|
context: "."
|
|
target: "assets"
|
|
env_file:
|
|
- ".env"
|
|
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
|
|
stop_grace_period: "3s"
|
|
tty: true
|
|
volumes:
|
|
- ".:/app"
|
|
|
|
services:
|
|
adr-tools:
|
|
image: "opdavies/adr-tools"
|
|
volumes:
|
|
- "./:/adr"
|
|
|
|
css:
|
|
<<: *default-assets
|
|
command: "./run yarn:build:css"
|
|
|
|
js:
|
|
<<: *default-assets
|
|
command: "./run yarn:build:js"
|
|
|
|
markdownlint:
|
|
build:
|
|
context: "."
|
|
target: "markdownlint"
|
|
volumes:
|
|
- "./source:/data/source"
|