Skip to content

Commit

Permalink
Merge pull request #66 from ludwigschubi/development
Browse files Browse the repository at this point in the history
Add dockerfile and .dockerignore
  • Loading branch information
dereklieu authored May 15, 2021
2 parents 149409a + 2b2f620 commit 7703f8c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tests
.circleci
node_modules
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ lib-cov
*.out
*.pid
*.gz
*.env

pids
logs
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node
WORKDIR /server
COPY package.json /server
COPY package-lock.json /server
RUN npm install
COPY . /server
CMD ["npm", "run", "start"]
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,24 @@ Also see the [documentation on Github](http://developer.github.com/v3/oauth/).
$ node index.js
```

## Run using Docker

You can build and run the docker image:
```bash
docker build -t gatekeeper .
docker run -p 443:443 -p 9999:9999 --name gatekeeper-server gatekeeper
```

Or run it with a .env file:
```bash
docker run -p 443:443 -p 9999:9999 --env-file .env --name gatekeeper-server gatekeeper
```

Or run using the docker hub image:
```bash
docker run -p 443:443 -p 9999:9999 --name gatekeeper-server ludwigschubi/gatekeeper
```

## Deploy on Heroku

### Heroku Button
Expand Down

0 comments on commit 7703f8c

Please sign in to comment.