2022-06-16 12:28:52 +00:00
|
|
|
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; \
|
2024-10-14 08:31:48 +00:00
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
python3-pip libpython3-dev gnupg pkg-config gcc libc-dev gosu tzdata;
|
2022-06-16 12:28:52 +00:00
|
|
|
|
2020-12-05 11:22:22 +00:00
|
|
|
# Install requirements first so as to skip in subsequent rebuilds
|
|
|
|
COPY ./requirements.txt requirements.txt
|
2024-10-10 16:17:24 +00:00
|
|
|
RUN pip3 install -r requirements.txt --require-hashes
|
2020-12-05 11:22:22 +00:00
|
|
|
|
2019-08-02 09:54:32 +00:00
|
|
|
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"]
|
2020-12-04 23:59:21 +00:00
|
|
|
CMD ["basicswap-run", "-datadir=/coindata"]
|