Dockerfile 425 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
FROM python:3.7-slim

# We copy just the requirements.txt first to leverage Docker cache
COPY src/requirements.txt /app/requirements.txt

WORKDIR /app

RUN pip install --upgrade pip && pip3 install -r requirements.txt && apt-get update && apt-get install -y rsyslog

COPY src/. /app
COPY xlsiem.conf /etc/rsyslog.d/xlsiem.conf
COPY entrypoint.sh .

RUN ["chmod", "+x", "/app/entrypoint.sh"]
ENTRYPOINT ["/app/entrypoint.sh"]