Public | Automated Build

Last pushed: a month ago
FROM ubuntu:14.04 MAINTAINER Kyle Manna <> ARG USER_ID ARG GROUP_ID RUN apt-key adv --keyserver --recv-keys 8842ce5e && \ echo "deb trusty main" > /etc/apt/sources.list.d/bitcoin.list RUN apt-get update && \ apt-get install -y bitcoind && \ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ENV HOME /bitcoin # add user with specified (or default) user/group ids ENV USER_ID ${USER_ID:-1000} ENV GROUP_ID ${GROUP_ID:-1000} RUN groupadd -g ${GROUP_ID} bitcoin RUN useradd -u ${USER_ID} -g bitcoin -s /bin/bash -m -d /bitcoin bitcoin RUN chown bitcoin:bitcoin -R /bitcoin ADD ./bin /usr/local/bin RUN chmod a+x /usr/local/bin/* # For some reason, (0.9.1~dfsg1-2) pkg in Ubuntu 14.04 has permission # denied issues when executing /bin/bash from trusted builds. Building locally # works fine (strange). Using the upstream docker (0.11.1) pkg from # works fine also and seems simpler. USER bitcoin VOLUME ["/bitcoin"] EXPOSE 8332 8333 18332 18333 WORKDIR /bitcoin CMD ["btc_oneshot"]
Source Repository