2014-08-05 14:18:19 +00:00
|
|
|
FROM dockerfile/nodejs
|
|
|
|
|
2015-01-12 15:15:03 +00:00
|
|
|
RUN apt-get -q update && apt-get install -qqy libsqlite3-dev socat supervisor
|
2014-09-18 16:31:52 +00:00
|
|
|
|
2014-08-05 14:18:19 +00:00
|
|
|
ADD . /app
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2014-09-22 12:45:15 +00:00
|
|
|
ENV SUPERVISOR_IMAGE resin/x86_64-supervisor
|
2014-08-05 14:18:19 +00:00
|
|
|
ENV CONFIG_MOUNT_POINT /boot/config.json
|
2014-08-14 21:32:03 +00:00
|
|
|
ENV LED_FILE /dev/null
|
2014-08-05 14:18:19 +00:00
|
|
|
|
|
|
|
RUN rm -rf node_modules
|
|
|
|
RUN npm install --unsafe-perm --production
|
|
|
|
|
|
|
|
RUN ln -sf /app/entry.sh /start
|
2014-09-22 13:08:19 +00:00
|
|
|
|
|
|
|
RUN apt-get clean
|
|
|
|
|
2014-08-05 14:18:19 +00:00
|
|
|
CMD ["/app/entry.sh"]
|