forked from github/issue-metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (21 loc) · 1.15 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
#checkov:skip=CKV_DOCKER_2
#checkov:skip=CKV_DOCKER_3
FROM python:3.12-slim
LABEL com.github.actions.name="issue-metrics" \
com.github.actions.description="Gather metrics on issues/prs/discussions such as time to first response, count of issues opened, closed, etc." \
com.github.actions.icon="check-square" \
com.github.actions.color="white" \
maintainer="@zkoppert" \
org.opencontainers.image.url="https://github.com/github/issue-metrics" \
org.opencontainers.image.source="https://github.com/github/issue-metrics" \
org.opencontainers.image.documentation="https://github.com/github/issue-metrics" \
org.opencontainers.image.vendor="GitHub" \
org.opencontainers.image.description="Gather metrics on issues/prs/discussions such as time to first response, count of issues opened, closed, etc."
WORKDIR /action/workspace
COPY requirements.txt *.py /action/workspace/
RUN python3 -m pip install --no-cache-dir -r requirements.txt \
&& apt-get -y update \
&& apt-get -y install --no-install-recommends git-all=1:2.39.2-1.1 \
&& rm -rf /var/lib/apt/lists/*
CMD ["/action/workspace/issue_metrics.py"]
ENTRYPOINT ["python3", "-u"]