Closed thakkaryash94 closed 6 years ago
does this link work for you? https://www.npmjs.com/package/koa-joi-router
Yes only if I use default node image, but if I use node alpine image, then it will throw above error because package is using "koa-router": "git+https://github.com/aheckmann/koa-router.git#19e60d9",
git commit and git is not available in node:alpine version to reduce docker image size.
I achieved this by using multi-stage docker build.
I achieved this by using multi-stage docker build.
I try to package my node app with docker. I used node alpine for base image, of course for less container size, but node alpine does not contain
git
to minimise image size and we are using git for aheckmann-koa-router package, so my docker built is throwing an error for alpine versionI verified in my app, this is the only package using git for koa-router, so it will be better if we use it npm package so that we can reduce the container size from 83MB to 14MB.
node docker image link
related #39