You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncfunctionmain(){awaitnewPromise(resolve=>{setTimeout(resolve,1000*60)})}constsignals=['SIGHUP','SIGINT','SIGTERM','SIGQUIT','SIGABRT',// 'SIGKILL','SIGUSR1','SIGUSR2']for(constsignalofsignals){console.log(`adding listener for signal ${signal}`)process.on(signal,()=>{console.log(`process received a ${signal} signal`)process.exit(1)})}main()
It will log signal received if I use node to run in a docker container, however no siganl will be caught if I use bytenode to run in a docker container. (for docker stop, docker restart or docker-compose up -d. docker kill will work).
dockerfile:
FROM node:16.10.0-alpine3.11
RUN apk -u add --no-cache python3 bash
RUN npm install -g
WORKDIR /app
COPY ./index.js index.js
RUN bytenode -c ./index.js
CMD bytenode ./index.jsc
The text was updated successfully, but these errors were encountered:
example:
It will log signal received if I use node to run in a docker container, however no siganl will be caught if I use bytenode to run in a docker container. (for docker stop, docker restart or docker-compose up -d. docker kill will work).
dockerfile:
The text was updated successfully, but these errors were encountered: