git-repo-updater/Dockerfile
2024-05-07 13:10:44 -06:00

15 lines
405 B
Docker

# 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"]