Dockerfile 658 B

1234567891011121314151617181920212223242526
  1. from debian
  2. RUN apt-get -y update && apt-get -y 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 ./build
  8. RUN dpkg -i meshchat_*_all.deb
  9. EXPOSE 80
  10. ENV MESH_ZONE=MeshChat
  11. ENV LOCAL_NODE=localnode
  12. VOLUME ["/var/www/html/meshchat/db/"]
  13. CMD sed -i 's|.*$pi_zone.*|our $pi_zone = '"\"$MESH_ZONE\";|" /usr/lib/cgi-bin/meshchatconfig.pm && \
  14. sed -i 's|.*$local_meshchat_node.*|our $local_meshchat_node = '"\"$LOCAL_NODE\";|" /usr/lib/cgi-bin/meshchatconfig.pm && \
  15. echo nameserver $LOCAL_NODE > /etc/resolv.conf && apache2ctl start && meshchatsync