Sign inSign up

hk01/docker-node

By hk01

•Updated over 4 years ago

[deprecated] check https://gallery.ecr.aws/hk01/docker-node

Image
0

100K+

hk01/docker-node repository overview

⁠Images built

latest 8.15-stretch-v0.1.0 8.15-v0.1.0
8.15-jessie-v0.1.0
8.10-stretch-v0.1.0

⁠Usage
RUN /base/scripts/token-init.sh # to init NPM TOKEN
CMD ["/base/scripts/start.sh"] # to generate pm2.config.js if not exist, then pm2-runtime start the server.js
⁠start.sh

fallback use default pm2.config.js if not provided and start pm2-runtime by calling pm2-config.sh

⁠pm2-config.sh

Generate default pm2.config.js for fallback purpose

⁠token-init.sh

Take environment variable NPM_TOKEN and GITHUB_TOKEN NPM_TOKEN for installing private module GITHUB_TOKEN for pulling private github repo then just yarn and git as your local dev environment (subject to the token permission)

⁠environment
PM2_KILL_SIGNAL: SIGTERM # pm2 sent signal to process, default SIGINT
PM2_KILL_TIMEOUT: 25000 # default 1600ms, 1.6s

Tag summary

Content type

Image

Digest

Size

344.3 MB

Last updated

over 4 years ago

docker pull hk01/docker-node:poc-latest-deprecated