Public | Automated Build

Last pushed: 10 months ago
Short Description
Convenience image to easily expose node.js code as express-based app container
Full Description

express-runner

Convenience lib for exposing code as express app

Example with docker

nodeapp/app.js:

module.exports = {
    hello: function (opts, callback) {
        callback(undefined, "hello: "+opts.name);
    }

docker-compose.yml:

  hello-service:
    image: express-runner
    volumes:
      - ./nodeapp:/data/app
    command: node /data/express-runner /data/app/app.js
    ports:
      - 80:80

GET /hello?name=world --> "hello: world"

Docker Pull Command
Owner
assalone
Source Repository

Comments (0)