{
  "name": "dockerpkg-example",
  "version": "1.0.0",
  "description": "Example zeit/micro app running in small docker container using zeit/pkg",
  "scripts": {
    "prebuild": "docker run -it --name dockerpkg-builder -v $(pwd):/app/ -v $(pwd)/.pkg-cache:/root/.pkg-cache --rm dockerpkg/builder:latest",
    "build": "docker build -t dockerpkg/dockerpkg-example:latest .",
    "run": "docker run -it --name dockerpkg-example --rm dockerpkg/dockerpkg-example:latest",
    "start": "micro"
  },
  "keywords": [],
  "bin": "./index.js",
  "author": "Bram Borggreve @beeman_nl <borggreve@gmail.com>",
  "license": "MIT",
  "dependencies": {
    "micro": "^7.3.2"
  }
}

{
  "name": "dockerpkg-example",
  "version": "1.0.0",
  "description": "Example zeit/micro app running in small docker container using zeit/pkg",
  "scripts": {
    "prebuild": "dockerpkg",
    "build": "docker build -t dockerpkg/dockerpkg-example:latest .",
    "run": "docker run -it --name dockerpkg-example --rm dockerpkg/dockerpkg-example:latest",
    "start": "micro"
  },
  "keywords": [],
  "bin": "./index.js",
  "author": "Bram Borggreve @beeman_nl <borggreve@gmail.com>",
  "license": "MIT",
  "dependencies": {
    "micro": "^7.3.2"
  },
  "devDependencies": {
    "dockerpkg": "^1.0.0"
  }
}

Use dockerpkg CLI to build app.bin
Use dockerpkg CLI to build app.bin
