2022-11-23 16:42:46 +02:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
|
|
|
|
|
|
|
# oletools image
|
|
|
|
FROM base
|
|
|
|
|
|
|
|
ARG VERSION=local
|
|
|
|
LABEL version=$VERSION
|
|
|
|
|
2023-10-07 10:03:23 +02:00
|
|
|
ARG OLEFY_SCRIPT https://raw.githubusercontent.com/HeinleinSupport/olefy/f8aac6cc55283886d153e89c8f27fae66b1c24e2/olefy.py
|
|
|
|
ARG OLEFY_SHA256 1f5aa58b78ca7917350135b4425e5ed4d580c7051aabed1952c6afd12d0345a0
|
|
|
|
|
2022-11-23 16:42:46 +02:00
|
|
|
RUN set -euxo pipefail \
|
|
|
|
; apk add --no-cache netcat-openbsd libmagic libffi \
|
2023-10-07 10:03:23 +02:00
|
|
|
; curl -sLo olefy.py $OLEFY_SCRIPT \
|
|
|
|
; echo "$OLEFY_SHA256 olefy.py" |sha256sum --check \
|
2022-11-23 16:42:46 +02:00
|
|
|
; chmod 755 olefy.py
|
|
|
|
|
2023-10-06 11:48:50 +02:00
|
|
|
COPY start.py /
|
|
|
|
|
2022-11-23 16:42:46 +02:00
|
|
|
RUN echo $VERSION >/version
|
|
|
|
|
|
|
|
HEALTHCHECK --start-period=60s CMD echo PING|nc -q1 127.0.0.1 11343|grep "PONG"
|
2023-01-04 20:19:43 +02:00
|
|
|
#EXPOSE 11343/tcp
|
2022-11-23 16:42:46 +02:00
|
|
|
|
|
|
|
USER nobody:nobody
|
|
|
|
|
|
|
|
ENV \
|
2023-01-28 17:32:21 +02:00
|
|
|
OLEFY_BINDADDRESS="" \
|
2022-11-23 16:42:46 +02:00
|
|
|
OLEFY_BINDPORT="11343" \
|
|
|
|
OLEFY_OLEVBA_PATH="/app/venv/bin/olevba" \
|
|
|
|
OLEFY_PYTHON_PATH="/app/venv/bin/python3" \
|
|
|
|
OLEFY_TMPDIR="/dev/shm/" \
|
|
|
|
OLEFY_MINLENGTH="300" \
|
|
|
|
OLEFY_DEL_TMP="1" \
|
|
|
|
OLEFY_DEL_TMP_FAILED="1"
|
|
|
|
|
2023-10-06 11:48:50 +02:00
|
|
|
CMD /start.py
|