forked from kylemanna/docker-bitcoind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (20 loc) · 906 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ubuntu:14.04
MAINTAINER Ryan McGuire <ryan@enigmacurry.com>
COPY bitcoinxt.key /bitcoinxt.key
RUN apt-key add /bitcoinxt.key && rm /bitcoinxt.key
RUN echo 'deb [ arch=amd64 ] http://bitcoinxt.software.s3-website-us-west-2.amazonaws.com/apt wheezy main' > /etc/apt/sources.list.d/bitcoinxt.list
RUN apt-get update && apt-get install -y bitcoinxt aria2
ENV HOME /bitcoin
RUN useradd -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, docker.io (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
# http://get.docker.io/ubuntu works fine also and seems simpler.
USER bitcoin
VOLUME ["/bitcoin"]
EXPOSE 8332 8333
WORKDIR /bitcoin
CMD ["btc_oneshot"]