forked from avast/retdec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (40 loc) · 1.59 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:focal AS builder
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 \
python-is-python3
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/ -DCMAKE_BUILD_TYPE=Release && \
make -j$(nproc) && \
make install
FROM ubuntu:focal
RUN useradd -m retdec
WORKDIR /home/retdec
ENV HOME /home/retdec
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
openssl graphviz upx python3
USER retdec
COPY --from=builder /home/retdec/retdec-install /retdec-install
ENV PATH /retdec-install/bin:$PATH