Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 1 | FROM alpine:3.17 |
Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame^] | 2 | LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>" |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 3 | |
| 4 | WORKDIR /app |
| 5 | |
| 6 | #RUN addgroup -S olefy && adduser -S olefy -G olefy \ |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 7 | RUN 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 Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 9 | && pip3 install --upgrade pip \ |
| 10 | && pip3 install --upgrade asyncio python-magic \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 11 | && pip3 install --upgrade https://github.com/decalage2/oletools/archive/master.zip \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 12 | && apk del .build-deps |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 13 | # && sed -i 's/template_injection_detected = True/template_injection_detected = False/g' /usr/lib/python3.9/site-packages/oletools/olevba.py |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 14 | |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 15 | ADD olefy.py /app/ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 16 | |
| 17 | RUN chown -R nobody:nobody /app /tmp |
| 18 | |
| 19 | USER nobody |
| 20 | |
| 21 | CMD ["python3", "-u", "/app/olefy.py"] |