Fix Docker build (#16809)
This commit is contained in:
parent
61014e5119
commit
3eeb9eab74
21
Dockerfile
21
Dockerfile
|
@ -28,8 +28,8 @@
|
|||
# $ r2 -d /bin/true
|
||||
#
|
||||
|
||||
# Using debian 9 as base image.
|
||||
FROM debian:9
|
||||
# Using debian 10 as base image.
|
||||
FROM debian:10
|
||||
|
||||
# Label base
|
||||
LABEL r2docker latest
|
||||
|
@ -37,18 +37,14 @@ LABEL r2docker latest
|
|||
# Radare version
|
||||
ARG R2_VERSION=master
|
||||
# R2pipe python version
|
||||
ARG R2_PIPE_PY_VERSION=0.8.9
|
||||
# R2pipe node version
|
||||
ARG R2_PIPE_NPM_VERSION=2.3.2
|
||||
ARG R2_PIPE_PY_VERSION=1.4.2
|
||||
|
||||
ENV R2_VERSION ${R2_VERSION}
|
||||
ENV R2_PIPE_PY_VERSION ${R2_PIPE_PY_VERSION}
|
||||
ENV R2_PIPE_NPM_VERSION ${R2_PIPE_NPM_VERSION}
|
||||
|
||||
RUN echo -e "Building versions:\n\
|
||||
R2_VERSION=$R2_VERSION\n\
|
||||
R2_PIPE_PY_VERSION=${R2_PIPE_PY_VERSION}\n\
|
||||
R2_PIPE_NPM_VERSION=${R2_PIPE_NPM_VERSION}"
|
||||
R2_PIPE_PY_VERSION=${R2_PIPE_PY_VERSION}"
|
||||
|
||||
# Build radare2 in a volume to minimize space used by build
|
||||
VOLUME ["/mnt"]
|
||||
|
@ -62,6 +58,7 @@ RUN DEBIAN_FRONTEND=noninteractive dpkg --add-architecture i386 && \
|
|||
apt-get update && \
|
||||
apt-get install -y \
|
||||
curl \
|
||||
wget \
|
||||
gcc \
|
||||
git \
|
||||
bison \
|
||||
|
@ -72,15 +69,13 @@ RUN DEBIAN_FRONTEND=noninteractive dpkg --add-architecture i386 && \
|
|||
libncurses5:i386 \
|
||||
libstdc++6:i386 \
|
||||
gnupg2 \
|
||||
sudo && \
|
||||
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
|
||||
apt-get install -y nodejs python-pip && \
|
||||
python-pip && \
|
||||
pip install r2pipe=="$R2_PIPE_PY_VERSION" && \
|
||||
npm install --unsafe-perm -g "r2pipe@$R2_PIPE_NPM_VERSION" && \
|
||||
cd /mnt && \
|
||||
git clone -b "$R2_VERSION" -q --depth 1 https://github.com/radareorg/radare2.git && \
|
||||
cd radare2 && \
|
||||
./sys/install.sh && \
|
||||
./configure && \
|
||||
make && \
|
||||
make install && \
|
||||
apt-get install -y xz-utils && \
|
||||
apt-get remove --purge -y \
|
||||
|
|
Loading…
Reference in New Issue