-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
37 lines (28 loc) · 1.19 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
FROM ubuntu:24.04
LABEL org.opencontainers.image.source https://github.com/checkmarx-ts/cxone-scan-scheduler
LABEL org.opencontainers.image.vendor Checkmarx Professional Services
LABEL org.opencontainers.image.title Checkmarx One Scan Scheduler
LABEL org.opencontainers.image.description Schedules scans for projects in Checkmarx One
USER root
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata && \
apt-get install -y cron python3.12 python3-pip python3-debugpy bash && \
usermod -s /bin/bash nobody && \
mkdir -p /opt/cxone && \
mkfifo /opt/cxone/logfifo && \
chown nobody:root /opt/cxone/logfifo
WORKDIR /opt/cxone
COPY *.txt /opt/cxone
RUN pip install -r requirements.txt --no-cache-dir --break-system-packages && \
apt-get remove -y perl && \
apt-get autoremove -y && \
apt-get clean && \
dpkg --purge $(dpkg --get-selections | grep deinstall | cut -f1)
COPY *.py entrypoint.sh *.json /opt/cxone/
COPY logic /opt/cxone/logic
COPY utils /opt/cxone/utils
COPY cxone_api /opt/cxone/cxone_api
RUN ln -s scheduler.py scheduler && \
ln -s scheduler.py audit
CMD ["scheduler"]
ENTRYPOINT ["/opt/cxone/entrypoint.sh"]