updated peepdf.dockerfile
libemu and pyv8 are now working
This commit is contained in:
@@ -2,8 +2,21 @@ FROM ubuntu:16.04
|
||||
MAINTAINER tabledevil
|
||||
|
||||
USER root
|
||||
|
||||
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
||||
RUN git clone https://github.com/jesparza/peepdf /opt/peepdf
|
||||
RUN git clone https://github.com/DidierStevens/DidierStevensSuite /opt/didierstevenssuite
|
||||
|
||||
|
||||
RUN groupadd -g 1001 -r nonroot && \
|
||||
useradd -u 1001 -r -g nonroot -d /home/nonroot -s /sbin/nologin -c "Nonroot User" nonroot && \
|
||||
mkdir /home/nonroot && \
|
||||
chown -R nonroot:nonroot /home/nonroot
|
||||
|
||||
WORKDIR /home/nonroot/
|
||||
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
python3-lxml \
|
||||
libemu2 \
|
||||
pkg-config \
|
||||
@@ -11,24 +24,22 @@ RUN apt-get update && apt-get install -y \
|
||||
pdftk \
|
||||
imagemagick \
|
||||
python-pil \
|
||||
python-pip ; \
|
||||
pip install pylibemu ; \
|
||||
python-pip \
|
||||
libboost-python-dev \
|
||||
libboost-thread-dev \
|
||||
libtool ; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN groupadd -r nonroot && \
|
||||
useradd -r -g nonroot -d /home/nonroot -s /sbin/nologin -c "Nonroot User" nonroot && \
|
||||
mkdir /home/nonroot && \
|
||||
chown -R nonroot:nonroot /home/nonroot
|
||||
RUN git clone https://github.com/buffer/pyv8.git ; cd pyv8 ; python setup.py build && python setup.py install && cd .. && rm -rf pyv8
|
||||
RUN git clone https://github.com/buffer/libemu.git ; cd libemu ; autoreconf -v -i && ./configure --prefix=/opt/libemu && make install && cd .. && rm -rf libemu2
|
||||
RUN pip install pylibemu
|
||||
|
||||
RUN git clone https://github.com/jesparza/peepdf /opt/peepdf
|
||||
RUN git clone https://github.com/DidierStevens/DidierStevensSuite /opt/DidierStevensSuite
|
||||
|
||||
USER root
|
||||
WORKDIR /home/nonroot/
|
||||
RUN chmod +x /opt/didierstevenssuite/*
|
||||
|
||||
RUN ln -s /opt/peepdf/peepdf.py /bin/peepdf.py
|
||||
RUN chmod +x /bin/peepdf.py
|
||||
|
||||
ENV PATH="/opt/didierstevenssuite/:${PATH}"
|
||||
|
||||
#USER nonroot
|
||||
WORKDIR /home/nonroot/
|
||||
|
||||
Reference in New Issue
Block a user