Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7251da7
commit 34e70b5
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM python:3.6-alpine | ||
|
||
ENV ELECTRUM_USER electrum | ||
ENV ELECTRUM_HOME /home/$ELECTRUM_USER | ||
ENV IN_DOCKER=1 | ||
|
||
RUN adduser -D $ELECTRUM_USER && \ | ||
mkdir -p ${ELECTRUM_HOME}/.electrum/ /data/ && \ | ||
ln -sf ${ELECTRUM_HOME}/.electrum/ /data/ && \ | ||
chown ${ELECTRUM_USER} ${ELECTRUM_HOME}/.electrum && \ | ||
mkdir -p $ELECTRUM_HOME/site && \ | ||
chown ${ELECTRUM_USER} $ELECTRUM_HOME/site | ||
|
||
COPY bitcart $ELECTRUM_HOME/site | ||
|
||
RUN apk add --virtual build-deps --no-cache gcc python3-dev musl-dev automake autoconf libtool file git make && \ | ||
git clone https://github.com/bitcoin/secp256k1 && \ | ||
cd secp256k1 && \ | ||
./autogen.sh && \ | ||
./configure && \ | ||
make && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf secp256k1 && \ | ||
cd $ELECTRUM_HOME/site && \ | ||
pip3 install -r requirements/base.txt && \ | ||
pip3 install -r requirements/daemons/bsty.txt && \ | ||
apk del build-deps | ||
|
||
USER $ELECTRUM_USER | ||
WORKDIR $ELECTRUM_HOME/site | ||
VOLUME /data | ||
|
||
CMD ["python","daemons/bsty.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
services: | ||
globalboost: | ||
restart: unless-stopped | ||
image: mrnaif/bitcart-bsty:stable | ||
environment: | ||
BSTY_NETWORK: ${BSTY_NETWORK:-mainnet} | ||
BSTY_LIGHTNING: ${BSTY_LIGHTNING:-true} | ||
expose: | ||
- "5003" | ||
|
||
backend: | ||
depends_on: | ||
- globalboost | ||
links: | ||
- globalboost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters