mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-23 20:09:25 +00:00
32 lines
895 B
Docker
32 lines
895 B
Docker
FROM debian:bullseye-slim
|
|
|
|
ENV LANG=C.UTF-8 \
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
DATADIR=/data
|
|
|
|
RUN apt-get update; \
|
|
apt-get install -y --no-install-recommends \
|
|
python3-pip libpython3-dev gnupg pkg-config gcc libc-dev gosu tzdata;
|
|
|
|
ARG BASICSWAP_URL=https://github.com/basicswap/basicswap/archive/master.zip
|
|
ARG BASICSWAP_DIR=basicswap-master
|
|
RUN wget -O basicswap-repo.zip $BASICSWAP_URL; \
|
|
unzip basicswap-repo.zip; \
|
|
mv $BASICSWAP_DIR /basicswap; \
|
|
cd /basicswap; \
|
|
pip3 install -r requirements.txt --require-hashes; \
|
|
pip3 install .;
|
|
|
|
#COPY ./test_code basicswap
|
|
#RUN cd basicswap; \
|
|
# pip3 install .;
|
|
|
|
RUN groupadd -r swap_user && useradd -g swap_user -ms /bin/bash swap_user && \
|
|
mkdir /data && chown swap_user -R /data
|
|
|
|
VOLUME /data
|
|
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["basicswap-run", "-datadir=/data"]
|