I want to run node application with pm2 in distroless image. As it do not have any shell inside it.
How to run PM2 in a distroless image
449 Views Asked by abhishek sharma At
1
There are 1 best solutions below
Related Questions in PM2
- Error while updating to latest pm2
- Production sailsjs app with no downtime with pm2
- PM2 cluster mode only starts one instance
- How to reset the id of pm2?
- node-uuid IS installed but require('node-uuid') fails
- cannot pm2 list in docker containers
- Forever errors with babel-node
- error starting pm2 in cluster mode in windows
- mongoError: Topology was destroyed
- PM2 (Node.js) deploy - Host key verification failed
- Node Apps on Ubuntu using pm2: Is my planned configuration correct?
- pm2 doesn't work with config json however works with direct command
- Zero downtime and auto restart of nodejs server
- PM2 Cluster - Connection Refused
- What exact command is to install pm2 on offline RHEL
Related Questions in DISTROLESS
- Golang distroless image throws stat VERSION error
- Ping distroless Docker image doesn't work
- Encountering error while trying to dockerize Rust app in multiple steps
- update glibc package in distroless
- got pip error while trying to convert an existing docker file to use distroless image
- distroless dockerfile result in more than 1 images
- standard_init_linux.go:228: exec user process caused: no such file or directory when using distroless to build rust app
- exit code: 139 on dockerfile build of from distroless image
- Passing customizable options to a GraalVM image execution in a distroless environment
- preStop hook using image distroless/java17:nonroot
- What is the value of $JAVA_HOME with gcr.io/distroless/java?
- how to take thread dump of java application on a distroless container running on kubernetes?
- How do you do Spring Health Check using the Dockerfile HEALTHCHECK when using distroless?
- Docker: how to run multiple binaries in a stripped-down "distroless" image?
- If I omit a shell in my distroless dockerfile, can I still run a script with if/else keywords within the resulting container?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Use this docker file for reference, for pm2 shell
/bin/shis required so we are manually copying all the required package from above image. After passing the absolute path in CMD or ENTRYPOINT it will work fine.