Dockerfile 659 B

1234567891011121314151617181920212223242526
  1. from debian
  2. RUN apt-get -y update && apt-get upgrade
  3. RUN apt-get install -y git curl apache2 binutils
  4. WORKDIR /root
  5. RUN git clone https://github.com/tpaskett/meshchat.git
  6. WORKDIR /root/meshchat
  7. RUN sed -i 's|.*$pi_zone.*|our $pi_zone = $ENV{"ZONE"};|' src/pi/data/www/cgi-bin/meshchatconfig.pm
  8. RUN sed -i 's|.*$local_meshchat_node.*|our $local_meshchat_node = $ENV{"LOCAL_NODE"};|' src/pi/data/www/cgi-bin/meshchatconfig.pm
  9. RUN ./build
  10. RUN dpkg -i meshchat_1.0_all.deb
  11. EXPOSE 80
  12. ENV ZONE=MeshChat
  13. ENV LOCAL_NODE=localnode
  14. VOLUME ["/var/www/html/meshchat/db/"]
  15. CMD echo nameserver $LOCAL_NODE > /etc/resolv.conf && apache2ctl start && meshchatsync