1
0
mirror of /repos/node-red-pi2.git synced 2026-02-27 17:11:59 +01:00

use node baseimage

This commit is contained in:
Aiko Mastboom
2015-05-09 07:44:30 +02:00
parent 8aebd586d0
commit b58dbb4853
3 changed files with 35 additions and 13 deletions

View File

@@ -1,16 +1,16 @@
# Use phusion/baseimage as base image. To make your builds reproducible, make
# sure you lock down to a specific version, not to `latest`!
# See https://github.com/phusion/baseimage-docker/blob/master/Changelog.md for
# a list of version numbers.
FROM phusion/baseimage-pi:0.9.16
FROM aiko/rpi-node:0.10.36
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# ...put your own build instructions here...
COPY . /data
RUN /data/bootstrap
RUN su - red /data/bootstrap-red
COPY . /tmp
RUN /tmp/bootstrap
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