first image: git auto puller
This commit is contained in:
15
sites/005-hugo-extended/git-auto-pull/Dockerfile
Normal file
15
sites/005-hugo-extended/git-auto-pull/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM alpine as alpine
|
||||
|
||||
RUN apk add --no-cache git openssh-client
|
||||
|
||||
ADD pull.sh entrypoint.sh /
|
||||
RUN chmod +x pull.sh entrypoint.sh
|
||||
|
||||
RUN echo "*/2 * * * * /pull.sh" > crontab.txt
|
||||
RUN crontab crontab.txt
|
||||
|
||||
WORKDIR /repo
|
||||
VOLUME /repo
|
||||
VOLUME /ssh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user