mirror of
https://github.com/avast/retdec.git
synced 2024-11-27 23:00:31 +00:00
35 lines
1.2 KiB
Docker
35 lines
1.2 KiB
Docker
FROM ubuntu:bionic
|
|
|
|
RUN useradd -m retdec
|
|
WORKDIR /home/retdec
|
|
ENV HOME /home/retdec
|
|
|
|
RUN apt-get -y update && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
build-essential \
|
|
cmake \
|
|
git \
|
|
python3 \
|
|
doxygen \
|
|
graphviz \
|
|
upx \
|
|
openssl \
|
|
libssl-dev \
|
|
zlib1g-dev \
|
|
autoconf \
|
|
automake \
|
|
pkg-config \
|
|
m4 \
|
|
libtool
|
|
|
|
USER retdec
|
|
RUN git clone https://github.com/avast/retdec && \
|
|
cd retdec && \
|
|
mkdir build && \
|
|
cd build && \
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=/home/retdec/retdec-install -DCMAKE_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/ && \
|
|
make -j$(nproc) && \
|
|
make install
|
|
|
|
ENV PATH /home/retdec/retdec-install/bin:$PATH
|