ソースはdistrolessのexamples
https://github.com/GoogleContainerTools/distroless/tree/main/examples/nodejs
debugタグのイメージを利用する。
FROM gcr.io/distroless/nodejs18-debian11:debug
entrypointにshを指定してログインする。
docker run -p 8000:8000 --entrypoint=sh -it local/node-distroless-http
backendで実行してみる。
/nodejs/bin/node hello_http.js &
URLにアクセスする。
http://127.0.0.1:8000/
参考にさせていただきました。
https://qiita.com/taquaki-satwo/items/f8fbe8b1efc4b2323ae7
