# Pull base image FROM aiko/baseimage-pi:0.9.18 MAINTAINER Aiko Mastboom # Set the locale ENV LANG=en_US.UTF-8 \ LANGUAGE=en_US:en \ LC_ALL=en_US.UTF-8 RUN apt-get update \ && apt-get upgrade -y -o Dpkg::Options::="--force-confold" \ && apt-get install -y wget libssl-dev ncurses-dev m4 build-essential \ && echo -n 'en_US.UTF-8' >> /etc/locale.gen \ && locale-gen en_US.UTF-8 \ && update-locale LANG=en_US.UTF-8 \ && wget http://www.erlang.org/download/otp_src_18.1.tar.gz \ && tar -xzvf otp_src_18.1.tar.gz && cd otp_src_18.1/ \ && ./configure --without-wx --prefix=/usr \ && make -j4 && make install \ && cd - \ && rm -rf /otp_src_18.1.tar.gz \ && rm -rf /otp_src_18.1 \ && apt-get remove -y build-essential wget libssl-dev ncurses-dev m4 \ && apt-get autoremove -y \ && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Define working directory #WORKDIR /data # Define default command # CMD ["bash"]