Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderPavlenko authored Jan 23, 2021
1 parent bbc531f commit ef687f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ef687f6

Please sign in to comment.