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