File: Dockerfile

package info (click to toggle)
plyvel 1.3.0-1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 304 kB
  • sloc: python: 903; cpp: 78; makefile: 41; sh: 36
file content (26 lines) | stat: -rw-r--r-- 720 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM quay.io/pypa/manylinux2010_x86_64

ENV CMAKE_VERSION=3.18.4

RUN true \
    && mkdir /opt/cmake \
    && cd /opt/cmake \
    && curl -sL https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz | tar xzf - \
    && cd ./cmake-* \
    && ./bootstrap --parallel=4 -- -DCMAKE_USE_OPENSSL=OFF \
    && make -j4 \
    && make install

# Remove sudo executable, since it does not work at all.
# The installation scripts will not to invoke it.
RUN rm "$(which sudo)"

COPY scripts/install-snappy.sh .
RUN ./install-snappy.sh

COPY scripts/install-leveldb.sh .
RUN ./install-leveldb.sh

ENV PATH="/opt/python/cp39-cp39/bin:${PATH}"

RUN pip install --upgrade pip setuptools cython