retdec/Dockerfile
Peter Matula f78ddffe9d docker: downgrade back to ubuntu:focal
Not that RetDec could not be complied on ubuntu:jammy, but we have old
docker on TC servers and we are getting this:

https://stackoverflow.com/questions/73699753/the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-avai
2022-12-06 17:45:31 +01:00

50 lines
1.6 KiB
Docker

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