basicswap/Dockerfile
tecnovert 059356ccd8
Some checks are pending
ci / ci (3.12) (push) Waiting to run
docker: Add ninja-build package
Issue #183
2024-12-25 10:49:07 +02:00

32 lines
789 B
Docker

FROM ubuntu:22.04
ENV LANG=C.UTF-8 \
DEBIAN_FRONTEND=noninteractive \
DATADIRS="/coindata"
RUN apt-get update; \
apt-get install -y --no-install-recommends \
python3-pip libpython3-dev gnupg pkg-config gcc libc-dev gosu tzdata cmake ninja-build;
# Install requirements first so as to skip in subsequent rebuilds
COPY ./requirements.txt requirements.txt
RUN pip3 install -r requirements.txt --require-hashes
COPY . basicswap-master
RUN cd basicswap-master; \
pip3 install .;
RUN useradd -ms /bin/bash swap_user && \
mkdir /coindata && chown swap_user -R /coindata
# html port
EXPOSE 12700
# websocket port
EXPOSE 11700
VOLUME /coindata
COPY ./docker/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["basicswap-run", "-datadir=/coindata"]