php - Docker raspbian lighttpd container not working -


i trying create php ligttpd docker container serves hello world type page displays host. have launched page on raspberry pi when try run container version container returns error exit of 255

the command running lighttpd -d -f /etc/lighttpd/lighttpd.conf

dockerfile

from resin/rpi-raspbian  # update system , install nginx webserver , php  run apt-get update && \     apt-get upgrade && \     apt-get -y install lighttpd && \     apt-get install -y php5-common php5-cgi php5 && \     lighty-enable-mod fastcgi-php   # add required files copy www/* /var/www/html copy run.sh /run.sh  env listen_port=80   expose 80 cmd /run.sh 

run.sh

#!/bin/bash  lighttpd -d -f /etc/lighttpd/lighttpd.conf 

what causing this? there easier way this?

i used /etc/init.d/lighttpd start cmd command exits container right after command finishes.


update:

i did not figure out solution problem have created similar image using dockercloud/hello image reference changed from instruction from resin/raspberry-pi-alpine-node work on raspberry pi running docker.

this solution proves faster creating image still want know need solve original problem image working!


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -