-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 986 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 986 Bytes
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
FROM madebytimo/python AS python
RUN pip3 install PyGithub
WORKDIR /root/builder
RUN mkdir -p python/bin python/include python/lib \
&& cp --no-dereference --preserve=mode,ownership,timestamps \
/usr/local/bin/python* /usr/local/bin/python3-latest python/bin \
&& cp --no-dereference --preserve=mode,ownership,timestamps --recursive \
/usr/local/include/python* python/include \
&& cp --no-dereference --preserve=mode,ownership,timestamps --recursive \
/usr/local/lib/python* python/lib \
&& rm -rf python/lib/python*/site-packages/pip*
FROM madebytimo/cron
COPY --from=python /root/builder/python /usr/local
COPY files/entrypoint.sh files/github-actions-keep-alive.py /usr/local/bin/
ENV CRON="0 4 * * 3"
ENV ORGANIZATIONS=""
ENV REPOSITORIES=""
ENV TOKEN=""
ENTRYPOINT [ "entrypoint.sh" ]
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.source=\
"https://github.com/mbT-Infrastructure/docker-github-actions-keep-alive"