blob: 10d63d02e4ff38ada16927e098deb2123cd2b18a [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001FROM alpine:3.17
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 \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010011 && pip3 install --upgrade https://github.com/decalage2/oletools/archive/master.zip \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010012 && apk del .build-deps
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010013# && sed -i 's/template_injection_detected = True/template_injection_detected = False/g' /usr/lib/python3.9/site-packages/oletools/olevba.py
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010014
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010015ADD olefy.py /app/
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010016
17RUN chown -R nobody:nobody /app /tmp
18
19USER nobody
20
21CMD ["python3", "-u", "/app/olefy.py"]