-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
24 lines (21 loc) · 1.1 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="stale-repos" \
com.github.actions.description="Find stale repositories in a GitHub organization." \
com.github.actions.icon="check-square" \
com.github.actions.color="white" \
maintainer="@zkoppert" \
org.opencontainers.image.url="https://github.com/github/stale-repos" \
org.opencontainers.image.source="https://github.com/github/stale-repos" \
org.opencontainers.image.documentation="https://github.com/github/stale-repos" \
org.opencontainers.image.vendor="GitHub" \
org.opencontainers.image.description="Find stale repositories in a GitHub organization."
WORKDIR /action/workspace
COPY requirements.txt stale_repos.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/stale_repos.py"]
ENTRYPOINT ["python3", "-u"]