mirror of
https://github.com/basicswap/basicswap.git
synced 2025-12-29 00:41:39 +01:00
Update dockerfile.
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,10 +1,19 @@
|
||||
FROM ubuntu:18.10
|
||||
FROM ubuntu:20.04
|
||||
|
||||
ARG WITH_COINS
|
||||
ARG WITHOUT_COINS
|
||||
|
||||
ENV LANG=C.UTF-8 \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
DATADIRS="/coindata"
|
||||
|
||||
RUN apt-get update; \
|
||||
apt-get install -y wget python3-pip gnupg unzip protobuf-compiler;
|
||||
apt-get install -y wget python3-pip gnupg unzip protobuf-compiler automake libtool pkg-config;
|
||||
|
||||
RUN wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/anonswap.zip && \
|
||||
unzip coincurve-anonswap.zip && \
|
||||
cd coincurve-anonswap && \
|
||||
python3 setup.py install --force
|
||||
|
||||
# TODO: move coindata dir out of src dir
|
||||
COPY . basicswap-master
|
||||
@@ -13,7 +22,7 @@ RUN cd basicswap-master; \
|
||||
pip3 install .;
|
||||
|
||||
# Download binaries, these will be part of the docker image
|
||||
RUN basicswap-prepare -datadir=/opt -preparebinonly
|
||||
RUN basicswap-prepare -datadir=/opt -preparebinonly ${WITH_COINS} ${WITHOUT_COINS}
|
||||
|
||||
RUN useradd -ms /bin/bash user && \
|
||||
mkdir /coindata && chown user -R /coindata
|
||||
|
||||
Reference in New Issue
Block a user