Add r2pm dependencies to Dockerfile (#7454)

* Git is needed for r2pm, don't remove it.
* Initialize r2pm in Docker.
* Fixed up r2pm for the r2 user.
* We also still need a lot of other build tools for r2pm...
This commit is contained in:
David Manouchehri 2017-05-08 16:05:35 -04:00 committed by radare
parent 3f506e0881
commit 4b11de34c0

View File

@ -73,13 +73,9 @@ RUN DEBIAN_FRONTEND=noninteractive dpkg --add-architecture i386 && \
cd radare2 && \
./sys/install.sh && \
make install && \
apt-get install -y xz-utils && \
apt-get remove --purge -y \
curl \
gcc \
git \
bison \
pkg-config \
make \
python-pip \
glib-2.0 && \
apt-get autoremove --purge -y && \
@ -95,5 +91,10 @@ USER r2
WORKDIR /home/r2
ENV HOME /home/r2
# Setup r2pm
RUN r2pm init && \
r2pm update && \
chown -R r2:r2 /home/r2/.config
# Base command for container
CMD ["/bin/bash"]