Created
March 26, 2018 07:49
-
-
Save oivoodoo/dd5ebaeadf2608f7972f8815b04def71 to your computer and use it in GitHub Desktop.
This file contains hidden or 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=0.1 | |
DIR=`pwd` | |
build: | |
docker run --rm -v ${DIR}:/src -w /src node:6-alpine ash -c "npm install" && docker run --rm -v ${DIR}:/src -w /src node:6-alpine ash -c "NODE_ENV=prod npm run build" && (docker rm scheduler-ui || true) && (docker build -t scheduler-ui:${VERSION} .) | |
.PHONY: build | |
run: | |
docker run -p 5000:80 -d scheduler-ui:${VERSION} | |
.PHONY: run | |
release: build run | |
.PHONY: release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment