Sign inSign up

rlogiacco/rpi-node

By rlogiacco

Updated over 9 years ago

Based on Alpine for ARM this image delivers a running instance of Node.js

Image
0

1.0K

rlogiacco/rpi-node repository overview

rpi-nginx

Based on Alpine for ARM this image delivers a running instance of Node.js.

Description

You should run this container on the background and mount a volume to provide your nodejs content.

Volumes

There are no volumes exported but you can use /usr/src/app to a volume where you can provide nodejs content. If you do so you might also want to set the work directory accordingly via the -w option, like in the examples below.

Ports

  • 80: default HTTP port

Run the container using docker

To get the container up and running:

sudo docker run -it --rm --name some-script -v "$PWD":/usr/src/app -w
/usr/src/app rlogiacco/rpi-node node some-script.js

If you have a daemon script and you want to leave it running in background

sudo docker run -d --name some-daemon -v "$PWD":/usr/src/app -w
/usr/src/app rlogiacco/rpi-node node daemon-script.js

Tag summary

Content type

Image

Digest

Size

19.8 MB

Last updated

over 9 years ago

docker pull rlogiacco/rpi-node