commit chages to docker file in which we are directly accessing and running the dev files
This commit is contained in:
parent
79fc0c67af
commit
c348055ee5
53
Dockerfile
53
Dockerfile
@ -1,45 +1,26 @@
|
|||||||
# Use a base Ubuntu image
|
# Use a base image
|
||||||
FROM ubuntu:20.04
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
# Set environment variables to avoid interaction during installation
|
# Install necessary packages
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
# Install required packages
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y \
|
apt-get install -y wget && \
|
||||||
git \
|
apt-get install -y gnupg2 && \
|
||||||
build-essential \
|
apt-get install -y software-properties-common
|
||||||
cmake \
|
|
||||||
libtool \
|
|
||||||
autoconf \
|
|
||||||
automake \
|
|
||||||
pkg-config \
|
|
||||||
libssl-dev \
|
|
||||||
libsqlite3-dev \
|
|
||||||
libboost-all-dev \
|
|
||||||
libcurl4-openssl-dev \
|
|
||||||
golang \
|
|
||||||
npm \
|
|
||||||
curl
|
|
||||||
|
|
||||||
# Clone the blockbook repository
|
# Download the pre-built files from GitHub releases
|
||||||
RUN git clone https://github.com/ranchimall/blockbook /opt/blockbook
|
RUN wget https://github.com/ranchimall/blockbook/releases/download/v0.4.0/blockbook-flo_0.4.0_amd64.deb && \
|
||||||
|
wget https://github.com/ranchimall/blockbook/releases/download/v0.15.1.1/backend-flo_0.15.1.1-satoshilabs-1_amd64.deb
|
||||||
|
|
||||||
# Build the blockbook files
|
# Install the downloaded packages
|
||||||
WORKDIR /opt/blockbook
|
RUN apt install -y ./backend-flo_0.15.1.1-satoshilabs-1_amd64.deb && \
|
||||||
RUN make deb-flo
|
apt install -y ./blockbook-flo_0.4.0_amd64.deb
|
||||||
|
|
||||||
# Install the backend and blockbook services
|
# Clean up downloaded packages
|
||||||
RUN apt-get install -y ./blockbook-flo*.deb && \
|
RUN rm -f ./backend-flo_0.15.1.1-satoshilabs-1_amd64.deb && \
|
||||||
apt-get install -y ./backend-flo*.deb
|
rm -f ./blockbook-flo_0.4.0_amd64.deb
|
||||||
|
|
||||||
# Start the backend service
|
# Expose the port for the Blockbook web interface
|
||||||
RUN systemctl start backend-flo.service
|
|
||||||
|
|
||||||
# Expose the blockbook port
|
|
||||||
EXPOSE 9166
|
EXPOSE 9166
|
||||||
|
|
||||||
# Start the blockbook service
|
# Start the Blockbook service
|
||||||
CMD ["systemctl", "start", "blockbook-flo.service"]
|
CMD ["/usr/local/bin/blockbook", "--config", "/etc/blockbook/blockbook-flo.cfg"]
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user