Skip to content

Commit

Permalink
Merge pull request #46 from GitbookIO/feature/dockerfile
Browse files Browse the repository at this point in the history
Feature/dockerfile
  • Loading branch information
AaronO committed Mar 14, 2016
2 parents 19e200b + 25168d4 commit a1ed1f6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules/
docs/
test/
schema.png
CHANGES.md
LICENSE
README.md
Procfile
.eslintrc
.git/
.gitignore
.npmignore
.travis.yml
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM mhart/alpine-node:5.8.0

# Switch to /app
WORKDIR /app
# Install deps
COPY package.json ./
RUN npm install --production
# Copy source
COPY . ./

# Ports
ENV PORT 80
EXPOSE 80

ENTRYPOINT ["npm", "start"]
6 changes: 6 additions & 0 deletions docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Nuts can be easily be deployed to a state-less server or PaaS.

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

### With docker

```
docker run -it -p 80:80 -e GITHUB_REPO=username/repo gitbook/nuts
```

### On your own server:

Install dependencies using:
Expand Down

0 comments on commit a1ed1f6

Please # to comment.