docker: Add script container fragment.

Example:
python3 ./scripts/build_yml_files.py -c bitcoin monero dash pivx --withscript
This commit is contained in:
tecnovert
2023-03-09 15:32:54 +02:00
parent ea8cc70696
commit 484d811fe7
5 changed files with 41 additions and 10 deletions

View File

@@ -26,21 +26,19 @@ ARG BASICSWAP_URL=https://github.com/tecnovert/basicswap/archive/master.zip
ARG BASICSWAP_DIR=basicswap-master
RUN wget -O basicswap-repo.zip $BASICSWAP_URL; \
unzip basicswap-repo.zip; \
cd $BASICSWAP_DIR; \
mv $BASICSWAP_DIR /basicswap; \
cd /basicswap; \
protoc -I=basicswap --python_out=basicswap basicswap/messages.proto; \
pip3 install .;
#COPY ./test_code basicswap-master
#RUN cd basicswap-master; \
#COPY ./test_code basicswap
#RUN cd basicswap; \
# protoc -I=basicswap --python_out=basicswap basicswap/messages.proto; \
# pip3 install .;
RUN groupadd -r swap_user && useradd -g swap_user -ms /bin/bash swap_user && \
mkdir /data && chown swap_user -R /data
# Expose html port
EXPOSE 12700
VOLUME /data
COPY ./entrypoint.sh /entrypoint.sh