24 lines
611 B
Docker
24 lines
611 B
Docker
FROM hypriot/rpi-node:latest
|
|
|
|
RUN apt-get -y update && apt-get install -y apt-utils dialog vim git
|
|
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 mkdir /root/tag-logger
|
|
COPY www /root/tag-logger/www
|
|
|
|
COPY startup.sh /root/startup.sh
|
|
RUN chmod +x /root/startup.sh
|
|
|
|
RUN npm install -g bower pm2 sails --silent
|
|
RUN cd /root/tag-logger/www && npm install && bower install --allow-root && cd /
|
|
|
|
RUN apt-get clean
|
|
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
CMD '/root/startup.sh'
|
|
|
|
|
|
|