From ef687f669620f77c93c420694e025c205d4c7a1e Mon Sep 17 00:00:00 2001 From: Alexander Pavlenko Date: Sat, 23 Jan 2021 19:26:39 +0300 Subject: [PATCH] Create Dockerfile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d335bcc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM golang:1.14-stretch + +RUN apt-get update && apt-get install -y \ + build-essential git pkg-config libzmq3-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev +RUN git clone --depth 1 --single-branch -b v6.14.6 https://github.com/facebook/rocksdb.git /rocksdb; \ + cd /rocksdb; CFLAGS=-fPIC CXXFLAGS=-fPIC make release + +WORKDIR /blockbook +ADD . . +RUN CGO_CFLAGS="-I/rocksdb/include" CGO_LDFLAGS="-L/rocksdb -lrocksdb -lstdc++ -lm -lz -ldl -lbz2 -lsnappy -llz4" go build