blob: 05ffcc25b8d450de358c14cafd59b37251480619 [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001FROM alpine:3.11
2LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
3
4WORKDIR /app
5
6#RUN addgroup -S olefy && adduser -S olefy -G olefy \
7RUN apk add --virtual .build-deps gcc python3-dev musl-dev libffi-dev openssl-dev \
8 && apk add --update --no-cache python3 openssl tzdata libmagic \
9 && pip3 install --upgrade pip \
10 && pip3 install --upgrade asyncio python-magic \
11 && pip3 install --upgrade https://github.com/HeinleinSupport/oletools/archive/master.zip \
12 && apk del .build-deps
13# && sed -i 's/decompress_stream(bytearray(compressed_code))/bytes2str(decompress_stream(bytearray(compressed_code)))/g' /usr/lib/python3.8/site-packages/oletools/olevba.py
14
15ADD https://raw.githubusercontent.com/HeinleinSupport/olefy/master/olefy.py /app/
16
17RUN chown -R nobody:nobody /app /tmp
18
19USER nobody
20
21CMD ["python3", "-u", "/app/olefy.py"]