Created
May 3, 2019 06:34
-
-
Save juacompe/b371f3a93e310b545307a61aa8eb7425 to your computer and use it in GitHub Desktop.
using docker-compose instead of `docker run` with long parameter list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
base: | |
image: node:11 | |
volumes: | |
- .:/usr/src/service/ | |
working_dir: /usr/src/service/ | |
install: | |
extends: | |
service: base | |
command: npm i | |
build: | |
extends: | |
service: base | |
command: npm run build | |
create-bundles: | |
extends: | |
service: base | |
command: npm run create-bundles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment