mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 11:26:11 +00:00
Dockerfile: Use Cutter from master, merge layers (#1141)
This commit is contained in:
parent
57231192f4
commit
410eb7aba4
@ -21,18 +21,11 @@ RUN apt-get update && \
|
|||||||
unzip \
|
unzip \
|
||||||
wget
|
wget
|
||||||
|
|
||||||
# Get latest cutter release
|
# Get, compile and test Cutter from master branch
|
||||||
WORKDIR /opt
|
RUN git clone --recurse-submodules https://github.com/radareorg/cutter.git /opt/cutter && \
|
||||||
RUN git clone --recurse-submodules https://github.com/radareorg/cutter.git && \
|
cd /opt/cutter && \
|
||||||
cd cutter && \
|
bash build.sh && \
|
||||||
git checkout tags/$(git tag | tail -1)
|
bash -c 'if [[ ! -x "/opt/cutter/build/Cutter" ]]; then exit -1; fi'
|
||||||
|
|
||||||
# Build cutter
|
|
||||||
WORKDIR /opt/cutter
|
|
||||||
RUN bash build.sh
|
|
||||||
|
|
||||||
# Check it afterwards
|
|
||||||
RUN bash -c 'if [[ ! -x "/opt/cutter/build/Cutter" ]]; then exit -1; fi'
|
|
||||||
|
|
||||||
# Add r2 user
|
# Add r2 user
|
||||||
RUN useradd r2
|
RUN useradd r2
|
||||||
|
Loading…
Reference in New Issue
Block a user