react-tiny-components-prese.../bin/run
2015-09-30 08:11:52 -04:00

19 lines
616 B
Bash
Executable File

#!/bin/bash
docker build -t john/nodebase -f Dockerfile.nodebase .
docker build -t john/react-tiny-components-modules - <<DOCKERFILE
FROM busybox
RUN mkdir -p /usr/local/node_modules
VOLUME /usr/local/node_modules
DOCKERFILE
docker rm `docker stop react-tiny-components`
docker build -t john/react-tiny-components -f Dockerfile .
docker run --name react-tiny-components-modules john/react-tiny-components-modules true
docker run -it -p 3500:3500 \
-v $PWD:/code \
--volumes-from react-tiny-components-modules \
--name react-tiny-components \
john/react-tiny-components