FROM python:3.7.2-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"]