|
FROM phusion/baseimage:0.11
|
|
|
|
# Use baseimage-docker's init system.
|
|
CMD ["/sbin/my_init"]
|
|
|
|
ADD setup.sh /tmp/setup.sh
|
|
|
|
# install stuff to image
|
|
RUN bash /tmp/setup.sh
|
|
|
|
ADD ./rootfs /
|
|
|
|
RUN chmod +x /usr/local/bin/* /etc/service/*/run
|
|
|
|
VOLUME /state
|
|
|
|
EXPOSE 3000 4000
|