Sign inSign up

magixus/alpine-node-example

By magixus

•Updated over 6 years ago

this images is an example of compiled nodejs app into alpine::latest images.

Image
0

212

magixus/alpine-node-example repository overview

⁠Test compiled Nodejs application with pkg on alpine docker image

Run those commands to test the image:

docker pull magixus/alpine-node-example:latest
docker run -it --rm  -p 3000:3000 --name nodejs magixus/alpine-node-example

⁠in another terminal type

for i in POST GET PUT DELETE
do  
    echo "use $i request \n" 
    curl -X $i localhost:3000
    echo "\n"
done

you 'ill notice the express node server response like:

request output

And the terminal output like:

curl output

Tag summary

Content type

Image

Digest

Size

23.1 MB

Last updated

over 6 years ago

docker pull magixus/alpine-node-example