Files
DataLogger-Generic/Dockerfile

31 lines
880 B
Docker

FROM hypriot/rpi-node:latest
RUN apt-get -y update && apt-get install -y apt-utils dialog vim
COPY mysql-install.sh /tmp/mysql-install.sh
COPY taglogger_db_structure.sql /tmp/taglogger_db_structure.sql
RUN chmod +x /tmp/mysql-install.sh && /tmp/mysql-install.sh
RUN apt-get install -y python git-core wget
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python get-pip.py
RUN pip install requests
RUN git clone https://github.com/ruscito/pycomm.git
RUN cd pycomm && python setup.py install && cd ..
RUN mkdir /root/tag-logger
COPY init /root/tag-logger/init
COPY tag /root/tag-logger/tag
COPY www /root/tag-logger/www
COPY taglogger.py /root/tag-logger/taglogger.py
COPY startup.sh /root/startup.sh
RUN chmod +x /root/startup.sh
RUN npm install -g bower pm2 sails
RUN cd /root/tag-logger/www && npm install && bower install --allow-root && cd /
CMD '/root/startup.sh'