Blame view

MLTD/Dockerfile 425 Bytes
16213c433   George Vlahavas   Use the latest py...
1
  FROM python:3.7-slim
0d8c0f816   Thanasis Naskos   initial commit
2
3
4
5
6
  
  # We copy just the requirements.txt first to leverage Docker cache
  COPY src/requirements.txt /app/requirements.txt
  
  WORKDIR /app
2e20dacc7   Thanasis Naskos   MLTD implementati...
7
  RUN pip install --upgrade pip && pip3 install -r requirements.txt && apt-get update && apt-get install -y rsyslog
0d8c0f816   Thanasis Naskos   initial commit
8
9
  
  COPY src/. /app
2e20dacc7   Thanasis Naskos   MLTD implementati...
10
11
  COPY xlsiem.conf /etc/rsyslog.d/xlsiem.conf
  COPY entrypoint.sh .
0d8c0f816   Thanasis Naskos   initial commit
12

2e20dacc7   Thanasis Naskos   MLTD implementati...
13
14
  RUN ["chmod", "+x", "/app/entrypoint.sh"]
  ENTRYPOINT ["/app/entrypoint.sh"]