Host-customized fork of https://github.com/tecnovert/basicswap/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
761 B

6 years ago
FROM ubuntu:18.10
ENV LANG=C.UTF-8 \
6 years ago
DATADIRS="/coindata"
RUN apt-get update; \
apt-get install -y wget python3-pip gnupg unzip protobuf-compiler;
6 years ago
# TODO: move coindata dir out of src dir
RUN wget -O bs.zip https://github.com/tecnovert/basicswap/archive/master.zip; \
unzip bs.zip; \
cd basicswap-master; \
6 years ago
protoc -I=basicswap --python_out=basicswap basicswap/messages.proto; \
pip3 install .;
# Download binaries, these will be part of the docker image
RUN basicswap-prepare -datadir=/opt -preparebinonly
RUN useradd -ms /bin/bash user && \
mkdir /coindata && chown user -R /coindata
6 years ago
USER user
WORKDIR /home/user
# Expose html port
EXPOSE 12700
VOLUME /coindata
ENTRYPOINT ["basicswap-run", "-datadir=/coindata/basicswap"]