git-repo-updater/Dockerfile
2023-09-22 23:57:23 -06:00

14 lines
380 B
Docker

# Use Alpine as the base image
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"]