blob: 6d9727c0360aee09336e9e7726e34c81d932e73e [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001FROM alpine:3.14
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01002LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
3
4WORKDIR /app
5
6#RUN addgroup -S olefy && adduser -S olefy -G olefy \
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02007RUN apk add --virtual .build-deps gcc musl-dev python3-dev libffi-dev openssl-dev cargo \
8 && apk add --update --no-cache python3 py3-pip openssl tzdata libmagic \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01009 && 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"]