mirror of
/repos/node-red-pi2.git
synced 2026-02-27 17:11:59 +01:00
use node baseimage
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user