Add more stuff
This commit is contained in:
parent
9c5e5424c3
commit
929a428ed1
5 changed files with 33 additions and 3 deletions
22
bitcoin/explorer/Dockerfile
Normal file
22
bitcoin/explorer/Dockerfile
Normal file
|
@ -0,0 +1,22 @@
|
|||
FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild
|
||||
|
||||
USER root
|
||||
WORKDIR /root
|
||||
|
||||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
|
||||
RUN source /root/.nvm/nvm.sh
|
||||
|
||||
RUN nvm install v20
|
||||
|
||||
WORKDIR /app
|
||||
RUN git clone https://github.com/janoside/btc-rpc-explorer explorer
|
||||
WORKDIR /app/explorer
|
||||
|
||||
RUN npm install
|
||||
|
||||
EXPOSE 3002
|
||||
WORKDIR /
|
||||
ADD ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
ENTRYPOINT [ "/bin/bash", "/entrypoint.sh" ]
|
6
bitcoin/explorer/entrypoint.sh
Normal file
6
bitcoin/explorer/entrypoint.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /app/explorer
|
||||
source ~/.nvm/nvm.sh
|
||||
|
||||
npm start
|
Loading…
Add table
Add a link
Reference in a new issue