2022-01-19 00:29:52 +00:00
|
|
|
FROM ubuntu:22.04
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install --yes \
|
2022-01-21 20:02:52 +00:00
|
|
|
build-essential \
|
|
|
|
git \
|
2022-01-19 00:29:52 +00:00
|
|
|
python3-setuptools \
|
|
|
|
python3-sqlalchemy \
|
|
|
|
&& apt-get clean
|
|
|
|
|
2022-01-21 20:02:52 +00:00
|
|
|
RUN git clone -b next https://github.com/capstone-engine/capstone.git /capstone/
|
|
|
|
WORKDIR /capstone/
|
|
|
|
RUN sh /capstone/make.sh
|
|
|
|
RUN sh /capstone/make.sh install
|
|
|
|
|
2022-01-19 00:29:52 +00:00
|
|
|
COPY setup.py /app/
|
|
|
|
COPY subdisassem /app/subdisassem/
|
|
|
|
WORKDIR /app/
|
|
|
|
RUN python3 setup.py install
|
2022-01-21 20:02:52 +00:00
|
|
|
|
|
|
|
RUN useradd -m subdisassem
|
|
|
|
WORKDIR /home/subdisassem
|
|
|
|
ENV HOME /home/subdisassem
|