-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
45 lines (32 loc) · 844 Bytes
/
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
FROM ubuntu:latest
LABEL maintainer="Austin Songer <[email protected]>"
# Configure Locale
ENV LANG=en_US.UTF-8
# Configure Timezone
ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
USER root
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential git-core wget \
whois \
python3.8 \
python3-pip \
autoconf \
sudo \
curl \
ssh \
slurm \
curl \
libssl-dev \
net-tools
RUN git clone https://github.com/elastic/detection-rules.git && \
cd detection-rules && \
pip3 install -r requirements.txt
# rm -rf .git
ENTRYPOINT ["/detection-rules"]
RUN pip3 install virtualenv
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /var/cache/apt/*
WORKDIR /detection-rules
ENTRYPOINT ["bash"]