14 lines
		
	
	
		
			397 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			397 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # 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 /root/Repo_Watcher/repo_watcher.sh
 | |
| 
 | |
| # Make script executable
 | |
| RUN chmod +x /root/Repo_Watcher/repo_watcher.sh
 | |
| 
 | |
| # Start script (Alpine uses /bin/sh instead of /bin/bash)
 | |
| CMD ["/bin/sh", "-c", "/root/Repo_Watcher/repo_watcher.sh"] |