# Use Alpine as the base image of the container
FROM alpine:latest

# Install necessary packages
RUN apk --no-cache add git curl rsync

# Add script
COPY repo_watcher.sh /repo_watcher.sh
RUN chmod +x /repo_watcher.sh

#Create Directory to store Repositories
RUN mkdir -p /root/Repo_Cache

# Start script (Alpine uses /bin/sh instead of /bin/bash)
CMD ["/bin/sh", "-c", "/repo_watcher.sh"]