FROM alpine:edge WORKDIR /opt COPY autopush.sh . RUN apk add git tini openssh #should contain a key pair #name of the key is is passed in via the SSH_KEY_NAME env variable, e.g. "id_rsa" VOLUME /ssh #should contain the repository to be pushed VOLUME /git ENTRYPOINT ["/sbin/tini", "--"] CMD ["/opt/autopush.sh"]