mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
23 lines
760 B
Plaintext
23 lines
760 B
Plaintext
|
# published to https://hub.docker.com/repository/docker/kava/rocksdb/tags
|
||
|
# docker buildx build --platform linux/amd64,linux/arm64 -t kava/rocksdb:v8.10.1-go1.21 -f Dockerfile-rocksdb-base . --push
|
||
|
FROM golang:1.21-bullseye
|
||
|
|
||
|
# Set up dependencies
|
||
|
RUN apt-get update \
|
||
|
&& apt-get install -y git make gcc libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev \
|
||
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
# Set working directory for the build
|
||
|
WORKDIR /root
|
||
|
# default home directory is /root
|
||
|
|
||
|
# install rocksdb
|
||
|
ARG rocksdb_version=v8.10.0
|
||
|
ENV ROCKSDB_VERSION=$rocksdb_version
|
||
|
|
||
|
RUN git clone https://github.com/facebook/rocksdb.git \
|
||
|
&& cd rocksdb \
|
||
|
&& git checkout $ROCKSDB_VERSION \
|
||
|
&& make -j$(nproc) install-shared \
|
||
|
&& ldconfig
|