Update Dockerfile
This commit is contained in:
parent
9b9893d0a5
commit
79fc0c67af
53
Dockerfile
53
Dockerfile
@ -1,10 +1,45 @@
|
|||||||
FROM ubuntu:latest
|
# Use a base Ubuntu image
|
||||||
WORKDIR /app
|
FROM ubuntu:20.04
|
||||||
COPY . /app
|
|
||||||
RUN apt-get update && apt-get install -y \
|
# Set environment variables to avoid interaction during installation
|
||||||
git \
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
python3 \
|
|
||||||
python3-pip
|
# Install required packages
|
||||||
RUN git clone https://github.com/trezor/blockbook.git
|
RUN apt-get update && \
|
||||||
WORKDIR /app/blockbook
|
apt-get install -y \
|
||||||
|
git \
|
||||||
|
build-essential \
|
||||||
|
cmake \
|
||||||
|
libtool \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
pkg-config \
|
||||||
|
libssl-dev \
|
||||||
|
libsqlite3-dev \
|
||||||
|
libboost-all-dev \
|
||||||
|
libcurl4-openssl-dev \
|
||||||
|
golang \
|
||||||
|
npm \
|
||||||
|
curl
|
||||||
|
|
||||||
|
# Clone the blockbook repository
|
||||||
|
RUN git clone https://github.com/ranchimall/blockbook /opt/blockbook
|
||||||
|
|
||||||
|
# Build the blockbook files
|
||||||
|
WORKDIR /opt/blockbook
|
||||||
|
RUN make deb-flo
|
||||||
|
|
||||||
|
# Install the backend and blockbook services
|
||||||
|
RUN apt-get install -y ./blockbook-flo*.deb && \
|
||||||
|
apt-get install -y ./backend-flo*.deb
|
||||||
|
|
||||||
|
# Start the backend service
|
||||||
|
RUN systemctl start backend-flo.service
|
||||||
|
|
||||||
|
# Expose the blockbook port
|
||||||
|
EXPOSE 9166
|
||||||
|
|
||||||
|
# Start the blockbook service
|
||||||
|
CMD ["systemctl", "start", "blockbook-flo.service"]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user