-
Notifications
You must be signed in to change notification settings - Fork 55
/
Dockerfile
24 lines (21 loc) · 1.22 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.13-slim@sha256:751d8bece269ba9e672b3f2226050e7e6fb3f3da3408b5dcb5d415a054fcb061
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=1:2.39.5-0+deb12u1 \
&& rm -rf /var/lib/apt/lists/*
CMD ["/action/workspace/issue_metrics.py"]
ENTRYPOINT ["python3", "-u"]