forked from wagga40/Zircolite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (35 loc) · 1.29 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Since `evtx_dump` precompiled binaries are not shipped with musl support, we need to use the
# Debian-based Python image instead of the Alpine-based image, which increases the size of the
# final image (~70 MB overhead).
#
ARG PYTHON_VERSION="slim"
FROM "python:${PYTHON_VERSION}" as stage
ARG ZIRCOLITE_INSTALL_PREFIX="/opt"
ARG ZIRCOLITE_REPOSITORY_URI="https://github.com/wagga40/Zircolite.git"
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install --yes --no-install-recommends \
git && \
apt-get autoremove --purge --yes && \
rm -rf /var/lib/apt/lists/*
WORKDIR "${ZIRCOLITE_INSTALL_PREFIX}"
RUN git clone \
"${ZIRCOLITE_REPOSITORY_URI}" \
zircolite
WORKDIR "${ZIRCOLITE_INSTALL_PREFIX}/zircolite"
RUN chmod 0755 \
zircolite.py
FROM "python:${PYTHON_VERSION}"
LABEL author="wagga40"
LABEL description="A standalone SIGMA-based detection tool for EVTX."
LABEL maintainer="wagga40"
ARG ZIRCOLITE_INSTALL_PREFIX="/opt"
WORKDIR "${ZIRCOLITE_INSTALL_PREFIX}"
COPY --chown=root:root --from=stage \
"${ZIRCOLITE_INSTALL_PREFIX}/zircolite" \
zircolite
WORKDIR "${ZIRCOLITE_INSTALL_PREFIX}/zircolite"
RUN python3 -m pip install \
--requirement requirements.txt
ENTRYPOINT [ "python3", "zircolite.py" ]
CMD [ "--help" ]