Skip to content

Commit

Permalink
Merge pull request #1 from clowdcontrol/gk-docker-dev
Browse files Browse the repository at this point in the history
Dockerfile
  • Loading branch information
gkiar authored Jun 22, 2017
2 parents 05d3c3c + ba5d87a commit 7fd8361
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions imports/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM danieldent/meteor:latest
MAINTAINER Anisha Keshavan <[email protected]>

USER root
RUN apt-get update
RUN apt-get install -y git

ENV MC_DIR /home/mindcontrol
ENV LC_ALL C

RUN mkdir -p ${MC_DIR} &&\
cd ${MC_DIR} &&\
git clone https://github.com/clowdcontrol/mindcontrol.git ${MC_DIR}

EXPOSE 3000
WORKDIR ${MC_DIR}
ENTRYPOINT ["meteor"]
16 changes: 16 additions & 0 deletions imports/docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Instructions for Running our Docker

## To Build
(from this directory)

```
docker build -t clowdcontrol/mindcontrol .
```

## To Run
(from anywhere, after building/pulling)

Note: the `-v` mount is **very important** as it contains the backup of the MongoDB.
```
docker run -it --rm -v ${PWD}/.mindcontrol/:/home/mindcontrol/.meteor/ -p 3000:3000 clowdcontrol/mindcontrol
```

0 comments on commit 7fd8361

Please sign in to comment.