Debian Codegraph @

sdk/dockerfile/report-jira-slack.dockerfile

raw
1 # This is the container where `automation/report_jira_tickets_on_slack.py` should run
2
3 FROM debian:12
4
5 ARG AUTO_USER=automation
6 ARG AUTO_HOME=/var/lib/automation
7
8 RUN apt update && \
9 apt install -y python3-full && \
10 useradd -md $AUTO_HOME -s /bin/bash $AUTO_USER
11
12 USER $AUTO_USER
13 WORKDIR $AUTO_HOME
14 ADD automation $AUTO_HOME
15
16 RUN python3 -m venv $AUTO_HOME/venv && \
17 $AUTO_HOME/venv/bin/pip install -r requirements.txt
18
19 CMD ["venv/bin/python3", "report_jira_tickets_on_slack.py"]