basicswap/Dockerfile

40 lines
1.2 KiB
Text
Raw Normal View History

FROM ubuntu:22.04
2020-12-01 20:45:03 +00:00
2019-07-19 15:33:51 +00:00
ENV LANG=C.UTF-8 \
2020-12-01 20:45:03 +00:00
DEBIAN_FRONTEND=noninteractive \
2019-07-17 15:12:06 +00:00
DATADIRS="/coindata"
RUN apt-get update; \
apt-get install -y wget python3-pip gnupg unzip make g++ autoconf automake libtool pkg-config gosu tzdata;
2023-12-14 18:29:32 +00:00
ARG COINCURVE_VERSION=v0.2
2024-09-19 10:15:50 +00:00
RUN wget -O coincurve-basicswap.zip https://github.com/basicswap/coincurve/archive/refs/tags/basicswap_$COINCURVE_VERSION.zip && \
echo "c309deef22c929c9ab5b3adf7adbda940bffcea6c6ec7c66202d6c3d4e3ceb79 coincurve-basicswap.zip" | sha256sum -c && \
unzip coincurve-basicswap.zip && \
mv ./coincurve-basicswap_$COINCURVE_VERSION ./coincurve-basicswap && \
cd coincurve-basicswap && \
pip install .
2019-07-17 15:12:06 +00:00
# Install requirements first so as to skip in subsequent rebuilds
COPY ./requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . basicswap-master
RUN cd basicswap-master; \
2019-07-17 15:12:06 +00:00
pip3 install .;
2020-12-02 21:19:10 +00:00
RUN useradd -ms /bin/bash swap_user && \
mkdir /coindata && chown swap_user -R /coindata
2019-07-17 15:12:06 +00:00
2022-07-31 17:33:01 +00:00
# html port
2019-07-17 15:12:06 +00:00
EXPOSE 12700
2022-07-31 17:33:01 +00:00
# websocket port
EXPOSE 11700
2019-07-17 15:12:06 +00:00
VOLUME /coindata
2020-12-02 21:19:10 +00:00
COPY ./docker/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["basicswap-run", "-datadir=/coindata"]