-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
37 lines (26 loc) · 921 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
29
30
31
32
33
34
35
36
FROM ubuntu:14.04
MAINTAINER Lars Kluge <l@larskluge.com>
RUN apt-get update
RUN dpkg-reconfigure locales && \
locale-gen en_US.UTF-8 && \
/usr/sbin/update-locale LANG=en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN apt-get -y install wget vim unzip
RUN adduser --disabled-password --home /dogecoin --gecos "" dogecoin
WORKDIR /usr/local/src
RUN wget https://github.com/dogecoin/dogecoin/releases/download/v1.8.0/dogecoin-1.8.0-linux64.zip
RUN unzip dogecoin-1.8.0-linux64.zip
RUN chmod +x dogecoind dogecoin-cli
RUN ln -s /usr/local/src/dogecoind /usr/local/bin/dogecoind
RUN ln -s /usr/local/src/dogecoin-cli /usr/local/bin/dogecoin-cli
ADD dogecoin.conf /dogecoin/.dogecoin/dogecoin.conf
RUN chown -R dogecoin:dogecoin /dogecoin/.dogecoin
USER dogecoin
ENV HOME /dogecoin
WORKDIR /dogecoin
RUN mkdir /dogecoin/data
VOLUME /dogecoin/data
EXPOSE 22555 22556
ENV RPCUSER user
ENV RPCPASS pass
CMD ["dogecoind"]