feat(docker): Production builds to a Docker container

This commit is contained in:
Chris Troutner
2019-02-08 16:44:53 -08:00
parent 589580798c
commit 7afe3c8f0c
2 changed files with 10 additions and 5 deletions
+9 -4
View File
@@ -22,23 +22,26 @@ It makes the following modifications:
- Configured for Travis CI (continuous integration), Coveralls (code coverage), GreenKeeper (automated dependency management), and Semantic Release (automated versioning).
- 'Production' environment is targeted for packaging as a Docker container.
## Features
This project covers basic necessities of most APIs.
* Authentication (passport & jwt)
* Database (mongoose)
* Testing (mocha)
* Doc generation with apidoc
* linting using standard
* Linting using standard
* Packaged as a Docker container
## Requirements
* node __^8.9.4__
* npm __^5.7.1__
* node __^10.15.1__
* npm __^6.7.0__
## Installation
```bash
git clone https://github.com/christroutner/babel-free-koa2-api-boilerplate.git
git clone https://github.com/christroutner/koa-api-boilerplate/tree/docker
```
## Structure
@@ -68,6 +71,8 @@ git clone https://github.com/christroutner/babel-free-koa2-api-boilerplate.git
* `npm run dev` Start server on dev mode with nodemon
* `npm run docs` Generate API documentation
* `npm test` Run mocha tests
* `docker-compose build` Build a 'production' Docker container
* `docker-compose up` Run the docker container
## Documentation
API documentation is written inline and generated by [apidoc](http://apidocjs.com/).
+1 -1
View File
@@ -2,7 +2,7 @@
#
#IMAGE BUILD COMMANDS
# ct-base-ubuntu = ubuntu 18.04 + nodejs
# ct-base-ubuntu = ubuntu 18.04 + nodejs v10 LTS
FROM christroutner/ct-base-ubuntu
MAINTAINER Chris Troutner <chris.troutner@gmail.com>