2022-06-16 12:28:52 +00:00
|
|
|
FROM debian:bullseye-slim
|
2020-12-27 19:39:10 +00:00
|
|
|
|
|
|
|
ENV LANG=C.UTF-8 \
|
|
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
|
|
DATADIR=/data
|
|
|
|
|
|
|
|
RUN apt-get update; \
|
2024-10-14 08:31:48 +00:00
|
|
|
apt-get install -y --no-install-recommends \
|
2024-11-12 20:43:32 +00:00
|
|
|
python3-pip libpython3-dev gnupg pkg-config gcc libc-dev gosu tzdata wget unzip;
|
2022-06-16 12:28:52 +00:00
|
|
|
|
2024-06-11 07:56:09 +00:00
|
|
|
ARG BASICSWAP_URL=https://github.com/basicswap/basicswap/archive/master.zip
|
2023-02-15 09:33:18 +00:00
|
|
|
ARG BASICSWAP_DIR=basicswap-master
|
|
|
|
RUN wget -O basicswap-repo.zip $BASICSWAP_URL; \
|
|
|
|
unzip basicswap-repo.zip; \
|
2023-03-09 13:32:54 +00:00
|
|
|
mv $BASICSWAP_DIR /basicswap; \
|
|
|
|
cd /basicswap; \
|
2024-10-10 16:17:24 +00:00
|
|
|
pip3 install -r requirements.txt --require-hashes; \
|
2020-12-27 19:39:10 +00:00
|
|
|
pip3 install .;
|
|
|
|
|
2023-03-09 13:32:54 +00:00
|
|
|
#COPY ./test_code basicswap
|
|
|
|
#RUN cd basicswap; \
|
2021-06-28 21:56:45 +00:00
|
|
|
# pip3 install .;
|
|
|
|
|
|
|
|
RUN groupadd -r swap_user && useradd -g swap_user -ms /bin/bash swap_user && \
|
2020-12-27 19:39:10 +00:00
|
|
|
mkdir /data && chown swap_user -R /data
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["basicswap-run", "-datadir=/data"]
|