# Use Alpine Linux as the base image of the container FROM alpine:latest # Install necessary packages RUN apk --no-cache add git curl rsync #Create Directory to store Repositories RUN mkdir -p /srv/Repo_Cache # Add script COPY repo_watcher.sh /srv/repo_watcher.sh RUN chmod +x /srv/repo_watcher.sh # Start script (Alpine uses /bin/sh instead of /bin/bash) CMD ["/bin/sh", "-c", "/srv/repo_watcher.sh"]