Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Added dockerfile #12

Merged
merged 1 commit into from
Jul 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:latest
LABEL maintainer="https://github.com/gaurav-nelson"

# Install app dependencies
COPY package.json /src/package.json
WORKDIR /src
RUN set -ex; \
npm install \
&& npm ls
# Bundle app source
COPY . /src
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,24 @@ To add the module to your project, run:
npm install --save asciidoc-link-check
```

Docker Run
==================
1. Clone the repository:

git clone https://github.com/gaurav-nelson/asciidoc-link-check.git

2. Open the repository directory:

cd asciidoc-link-check

3. Build a Docker image:

docker build --tag asciidoc-link-check .

4. Pipe any asciidoc file `test.adoc` to `docker run`:

docker run --rm -i asciidoc-link-check < test.adoc

API
===

Expand Down
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
},
"main": "index.js",
"scripts": {
"pretest": "jshint index.js asciidoc-link-check",
"test": "mocha -R spec"
"pretest": "jshint index.js asciidoc-link-check"
},
"repository": {
"type": "git",
Expand All @@ -31,13 +30,16 @@
"homepage": "https://github.com/gaurav-nelson/asciidoc-link-check#readme",
"dependencies": {
"asciidoc-link-extractor": ">=1.0.2",
"async": ">=2.6.0",
"chalk": ">=2.3.2",
"commander": ">=2.15.1",
"link-check": ">=4.3.3",
"lodash": ">=4.17.5",
"async": ">=2.6.1",
"chalk": ">=2.4.1",
"commander": ">=2.16.0",
"link-check": ">=4.4.4",
"lodash": ">=4.17.10",
"progress": ">=2.0.0",
"request": ">=2.85.0",
"uuid": ">=3.2.1"
"request": ">=2.87.0",
"uuid": ">=3.3.2"
},
"devDependencies": {
"jshint": "^2.9.5"
}
}