https://github.com/mbround18/pkg-vercel
https://github.com/mbround18/pkg-vercel
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mbround18/pkg-vercel
- Owner: mbround18
- Created: 2022-09-30T23:47:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-03T10:41:32.000Z (about 2 months ago)
- Last Synced: 2025-04-03T11:34:17.271Z (about 2 months ago)
- Language: Dockerfile
- Size: 8.78 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Proof of Concept for `pkg` by Vercel
## Intention
Test the validity of utilizing `pkg` by Vercel which should bundle the node process into an easily executable file.
The image produced should be a small image with minimal dependancies.## Usage
1. yarn install
2. yarn docker:build
3. yarn docker:run
4. Acces via `http://localhost:3000`## Conclusion
Traditional docker image that would require a node server would package node modules. This is chunky and should be the norm.
In this sitation, we are using pkg to convert to node v8 binary and executing within an alpine image.Traditional docker image is roughly 285MB
pkg for alpine is 54MB