20 lines
528 B
Docker
20 lines
528 B
Docker
FROM ubuntu:trusty
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y supervisor software-properties-common && \
|
|
add-apt-repository -y ppa:bitcoin/bitcoin && \
|
|
apt-get update && \
|
|
apt-get install -y bitcoind && \
|
|
apt-get clean && \
|
|
useradd -m crypto && \
|
|
su -c "mkdir /home/crypto/bitcoin/" crypto && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
ADD bitcoin.conf /home/crypto/bitcoin.conf
|
|
ADD supervisor-bitcoin.conf /etc/supervisor/conf.d/bitcoin.conf
|
|
|
|
VOLUME /home/crypto/bitcoin/
|
|
EXPOSE 8332 8333
|
|
|
|
CMD supervisord
|