https://github.com/dockerpkg/dockerpkg
Build and run node apps in small docker containers using zeit/pkg
https://github.com/dockerpkg/dockerpkg
beeman docker-container docker-pkg mit pkg zeit
Last synced: about 1 month ago
JSON representation
Build and run node apps in small docker containers using zeit/pkg
- Host: GitHub
- URL: https://github.com/dockerpkg/dockerpkg
- Owner: dockerpkg
- License: mit
- Created: 2017-05-01T06:12:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T04:13:59.000Z (almost 8 years ago)
- Last Synced: 2024-10-24T16:49:01.456Z (6 months ago)
- Topics: beeman, docker-container, docker-pkg, mit, pkg, zeit
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 44
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dockerpkg
> Build and run node apps in small containers using docker and [zeit/pkg](https://github.com/zeit/pkg).
# Introduction
[zeit/pkg](https://github.com/zeit/pkg) is a tool to package a NodeJS project into an executable. The resulting
packages can be used on a system without having to install NodeJS, npm or the project dependencies.When used together with a small system like Alpine Linux this can result in simple and minimal Docker images.
This project aims for a very simple workflow to create these small images. It does so by separating the process of
building and running the container and it provides a simple helper command to run the build.# Components
## dockerpkg/builder
The builder image is based on `node:7.9-alpine` and it runs the `pkg` command with some params in the mounted directory.
The result is a generated binary called `app.bin` in the mounted directory (generally this is the dir of you project).
## dockerpkg/runner
The runner images is based on `alpine:3.5` and it is made to run the generated `app.bin` from the `/app` directory.
## dockerpkg cli tool
The `dockerpkg` is a simple script that executes the `docker` command with the right parameters to created a build.
It pulls the `dockerpkg/runner` images and makes sure that the working dir is mounted correctly.# How to use
Please refer to [dockerpkg-example](https://github.com/dockerpkg/dockerpkg-example) for a working example.
# Credits
- [ZEIT](https://zeit.co) for creating awesome software like [zeit/pkg](https://github.com/zeit/pkg)
# LICENSE
MIT