Running pico-engine in Docker

(I use the latest Docker beta on OSX, but this should work on any recent Docker installation.)

Here is the Dockerfile:

FROM fedora:24
RUN dnf -y install nodejs python2 make gcc gcc-c++
RUN npm install -g pico-engine
CMD /usr/bin/pico-engine

Run this command (in the folder where you saved Dockerfile) to build the docker image:

docker build -t pico-engine .

Run this command to start your pico-engine in docker:

docker run -it -p 8084:8084 -e PORT=8084 pico-engine

It should start up and report the URL: http://localhost:8084. Now you can follow the instructions on – skip the “Install and run…” section.

Console messages will appear in the console where you ran docker.

1 Like

Very nice Randall!

The thing that would make this better would be to use mounted volumes to put ~/.picoengine outside the Docker image so that it’s independent of the container. That way, you could just update the container without losing the picos in it.