2015-09-30 02:04:16 +00:00
|
|
|
#!/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 .
|
2015-09-30 12:11:52 +00:00
|
|
|
docker run --name react-tiny-components-modules john/react-tiny-components-modules true
|
2015-09-30 02:04:16 +00:00
|
|
|
docker run -it -p 3500:3500 \
|
|
|
|
-v $PWD:/code \
|
|
|
|
--volumes-from react-tiny-components-modules \
|
|
|
|
--name react-tiny-components \
|
|
|
|
john/react-tiny-components
|