2021-02-18 08:25:30 +01:00
|
|
|
FROM alpine:3.13
|
2019-06-16 17:36:22 +02:00
|
|
|
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2019-06-25 18:52:05 +02:00
|
|
|
#RUN addgroup -S olefy && adduser -S olefy -G olefy \
|
2021-02-18 08:25:30 +01:00
|
|
|
RUN apk add --virtual .build-deps gcc musl-dev python3-dev libffi-dev openssl-dev cargo \
|
|
|
|
&& apk add --update --no-cache python3 py3-pip openssl tzdata libmagic \
|
2019-06-16 17:36:22 +02:00
|
|
|
&& pip3 install --upgrade pip \
|
2020-10-21 19:00:53 +02:00
|
|
|
&& pip3 install --upgrade asyncio python-magic \
|
|
|
|
&& pip3 install --upgrade https://github.com/HeinleinSupport/oletools/archive/master.zip \
|
|
|
|
&& apk del .build-deps
|
|
|
|
# && sed -i 's/decompress_stream(bytearray(compressed_code))/bytes2str(decompress_stream(bytearray(compressed_code)))/g' /usr/lib/python3.8/site-packages/oletools/olevba.py
|
2019-06-16 17:36:22 +02:00
|
|
|
|
2019-06-25 18:52:05 +02:00
|
|
|
ADD https://raw.githubusercontent.com/HeinleinSupport/olefy/master/olefy.py /app/
|
|
|
|
|
|
|
|
RUN chown -R nobody:nobody /app /tmp
|
|
|
|
|
|
|
|
USER nobody
|
2019-06-16 17:36:22 +02:00
|
|
|
|
|
|
|
CMD ["python3", "-u", "/app/olefy.py"]
|