Skip to content

Instantly share code, notes, and snippets.

@juacompe
Created May 3, 2019 06:34
Show Gist options
  • Save juacompe/b371f3a93e310b545307a61aa8eb7425 to your computer and use it in GitHub Desktop.
Save juacompe/b371f3a93e310b545307a61aa8eb7425 to your computer and use it in GitHub Desktop.
using docker-compose instead of `docker run` with long parameter list
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