Example zeit/micro app running in small docker container using docker-pkg
$ git clone https://github.com/beeman/docker-pkg-example.git
$ npm run build
This will do 2 things:
- Build the
app.bin
file using the beeman/docker-pkg-builder container - Build a new Docker container based of the beeman/docker-pkg-runner container
You have just created a <50 MB Docker image that runs your application.
Run the container using this command:
$ docker run -p 3000:3000 -it --name docker-pkg-example --rm beeman/docker-pkg-example:latest
Verify that it works:
$ curl localhost:3000
You can stop the running container using this command:
$ docker stop docker-pkg-example
MIT