Files
DataLogger-Generic/web_db/Dockerfile
2016-10-13 17:18:52 -05:00

24 lines
599 B
Docker

FROM 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'