Skip to content

Commit

Permalink
Add r2pm dependencies to Dockerfile (#7454)
Browse files Browse the repository at this point in the history
* 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...
  • Loading branch information
Manouchehri authored and radare committed May 8, 2017
1 parent 3f506e0 commit 4b11de3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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"]

0 comments on commit 4b11de3

Please sign in to comment.