mirror of
/repos/node-red-pi2.git
synced 2026-02-27 17:11:59 +01:00
bootstrap service
This commit is contained in:
@@ -2,15 +2,16 @@ FROM phusion/baseimage:0.9.16
|
||||
|
||||
# Use baseimage-docker's init system.
|
||||
CMD ["/sbin/my_init"]
|
||||
VOLUME /data
|
||||
|
||||
COPY . /tmp
|
||||
RUN NODE_VERSION=0.10.38 TIMEZONE="Europe/Amsterdam" /tmp/bootstrap
|
||||
RUN /tmp/bootstrap-service
|
||||
RUN su -lc /tmp/bootstrap-red red
|
||||
|
||||
# Clean up APT when done.
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
# How to plug it in
|
||||
VOLUME /data
|
||||
EXPOSE 1880
|
||||
|
||||
|
||||
Reference in New Issue
Block a user