Skip to content

Commit

Permalink
Merge pull request apidoc#619 from thiagocaiubi/docker
Browse files Browse the repository at this point in the history
Add Docker image
  • Loading branch information
rottmann authored May 19, 2017
2 parents 940db62 + f628bd1 commit ec8829e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
doc/
docker-example/
node_modules/
tmp/
npm-debug.log
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:6-alpine

RUN mkdir -p /apidoc
WORKDIR /apidoc

RUN npm install -g apidoc

ENTRYPOINT ["apidoc"]
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,28 @@ If you want ot work on this, please send me a PM.

## Installation

`npm install apidoc -g`
```console
$ npm install apidoc -g
```

### Alternative docker install

```console
$ docker pull apidoc/apidoc
```

Then you will need to mount your file storage `-v '<apidoc.json dir>:/apidoc'` to docker container.

Example:

```console
$ docker run --rm -v '$(PWD):/apidoc' -it apidoc/apidoc \
--input ./example \
--output ./docker-example \
-v
```

Creates from input files in `example/` a documentation in path `docker-example/`.

## Changelog

Expand All @@ -51,7 +71,9 @@ If you want ot work on this, please send me a PM.
*/
```

`apidoc -i example/ -o doc/`
```console
$ apidoc -i example/ -o doc/
```

Creates from input files in `example/` a documentation in path `doc/`.

Expand Down

0 comments on commit ec8829e

Please sign in to comment.