-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (18 loc) · 1.24 KB
/
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
FROM ubuntu:16.04
MAINTAINER Beam <b-docker-socialsend@grmbl.net>
ENV DOCKERFILE_CHANGE=20180228194200
ENV GIT_URL=https://github.com/SocialSend/SocialSend.git
ENV SUDO="sudo -u send"
ENV SEND_DIR=/home/send/SocialSend
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y pkg-config apt-utils build-essential autoconf automake libtool libboost-all-dev libgmp-dev libssl-dev libcurl4-openssl-dev git software-properties-common python-software-properties bsdmainutils sudo
RUN add-apt-repository ppa:bitcoin/bitcoin && apt-get update
RUN apt-get install -y db4.8-util libdb4.8++-dev libdb4.8++ libdb4.8-dbg libdb4.8-dev libdb4.8-java-dev libdb4.8-java-gcj libdb4.8-java libdb4.8-tcl libdb4.8
RUN echo 'send ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
RUN useradd -m send && su - send -c "git clone $GIT_URL && \
cd SocialSend && chmod +x share/genbuild.sh && chmod +x autogen.sh && chmod 755 src/leveldb/build_detect_platform && ./autogen.sh && ./configure && make" && cd ~send/SocialSend && make install
RUN rm -rf /home/send/SocialSend
#RUN $SUDO && $SUDO git clone $GIT_URL && cd $SEND_DIR && sh share/genbuild.sh && sh autogen.sh && sh configure && make
ADD run.sh /home/send/run.sh
ENTRYPOINT /bin/su - send -c "/home/send/run.sh"
EXPOSE 50050