Skip to content
Snippets Groups Projects
Select Git revision
  • 8fc9b8b819cdab6181c7bf08c746459e43b6383f
  • main default protected
2 results

Dockerfile

Blame
  • Dockerfile 468 B
    FROM k8s.gcr.io/git-sync/git-sync:v3.3.5
    
    ENV GIT_SYNC_ROOT='/tmp/git' GIT_SYNC_DEST='config' GIT_SYNC_EXECHOOK_COMMAND='/ha-rsync' GIT_SYNC_ADD_USER='true'
    
    USER root:root
    
    RUN set -ex \
        && apt-get update -y \
        && apt-get install -y rsync \
        && apt-get clean -y \
        && rm -rf /var/lib/apt/lists/* \
        && chmod -Rv 0777 "${GIT_SYNC_ROOT:-/tmp/git}/"
    
    COPY ha-rsync* /
    
    RUN set -ex \
        && chmod a+x /ha-rsync
    
    VOLUME ["/config"]
    
    USER git-sync:git-sync