Skip to content

Commit

Permalink
Simplify Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed May 1, 2024
1 parent ddd184e commit 5693464
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
FROM ubuntu:noble
ARG ANGR_VERSION

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
&& apt-get -o APT::Immediate-Configure=0 install -y python3-dev python3-venv \
Expand All @@ -12,9 +9,8 @@ USER angr
WORKDIR /home/angr

RUN python3 -m venv --prompt angr .venv
RUN bash -c "source .venv/bin/activate && pip install -U pip"
RUN bash -c "source .venv/bin/activate && pip install setuptools" # Required for capstone with pyhton 3.12
RUN bash -c "source .venv/bin/activate && pip install angr[AngrDB,pcode]==${ANGR_VERSION}"
RUN echo "source /home/angr/.venv/bin/activate" >> /home/angr/.bashrc
RUN /home/angr/.venv/bin/pip install -U pip setuptools # setuptools required for capstone with python 3.12

CMD ["/bin/bash"]
ARG ANGR_VERSION
RUN /home/angr/.venv/bin/pip install angr[AngrDB,pcode]==${ANGR_VERSION}

0 comments on commit 5693464

Please sign in to comment.