Dockerfile to create image with git, python, nodejs, coffeescript, lua, luarocks, moonscript, minicom, esptool, luatool, NodeMCU-Tool for esp8266 programming
docker run -it --device /dev/ttyUSB0 twhtanghk/docker.esp8266
browse https://nodemcu-build.com/index.php enable required modules (e.g. adc, cjson, file, gpio, net, node, pwm, rtctime, tmr, wifi)
esptool.py write_flash 0x00000 nodemcu-xxxx.bin
cd ~/docker.esp8266/src
moonc *.moon
nodemcu-tool mkfs
nodemcu-tool upload *.lua