fixed order of peepdf.dockerfile
moved some parts around for better rebuilds
This commit is contained in:
@@ -7,15 +7,6 @@ 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/jesparza/peepdf /opt/peepdf
|
||||||
RUN git clone https://github.com/DidierStevens/DidierStevensSuite /opt/didierstevenssuite
|
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 \
|
||||||
python3-lxml \
|
python3-lxml \
|
||||||
libemu2 \
|
libemu2 \
|
||||||
@@ -34,13 +25,19 @@ RUN git clone https://github.com/buffer/pyv8.git ; cd pyv8 ; python setup.py bui
|
|||||||
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 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 pip install pylibemu
|
||||||
|
|
||||||
RUN chmod +x /opt/didierstevenssuite/*
|
|
||||||
|
|
||||||
|
RUN chmod +x /opt/didierstevenssuite/*py
|
||||||
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}"
|
ENV PATH="/opt/didierstevenssuite/:${PATH}"
|
||||||
|
|
||||||
#USER nonroot
|
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/
|
||||||
|
USER nonroot
|
||||||
WORKDIR /home/nonroot/
|
WORKDIR /home/nonroot/
|
||||||
CMD /bin/bash
|
CMD /bin/bash
|
||||||
|
|||||||
Reference in New Issue
Block a user