Skip to content

Commit

Permalink
add a Docker container
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
  • Loading branch information
ahmetb committed Jun 11, 2016
1 parent 94b9d0f commit cbff6e5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:6

COPY . /app
WORKDIR /app
RUN ["npm", "install", "-g", "coffee-script"]
RUN ["npm", "install"]

VOLUME /app/formatted
VOLUME /app/raw

CMD make
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ make get
make format
```

or use a Docker container:

```
# Build the image
docker build -t top .
# Run the image
docker run -i -t -v ~/data/formatted:/app/formatted -v ~/data/raw:/app/raw top
# ...and the output will be in ~/data.
```

## License

The MIT License (MIT)
Expand Down

0 comments on commit cbff6e5

Please sign in to comment.