Add an alpine dockerfile

This commit is contained in:
bad 2022-09-02 13:58:35 +02:00
parent 3a7e6ddda1
commit d2cbf83469
2 changed files with 14 additions and 0 deletions

14
Dockerfile.alpine Normal file
View File

@ -0,0 +1,14 @@
FROM alpine:latest
RUN mkdir /PWD
WORKDIR /tmp
RUN apk add --no-cache gdb python3 gcc musl-dev bash py3-pip python3-dev linux-headers
RUN apk add --no-cache git cmake make
RUN git clone --depth 1 'https://github.com/unicorn-engine/unicorn.git'
WORKDIR /tmp/unicorn/bindings/python
RUN pip install .
RUN pip3 install pwntools
ADD spawn-on-host-tmux.sh /bin/spawn-on-host-tmux.sh
RUN chmod +x /bin/spawn-on-host-tmux.sh
RUN ln -s /bin/spawn-on-host-tmux.sh /bin/pwntools-terminal
WORKDIR /PWD
ENTRYPOINT ["sh"]