From 5415f58c33583cd2cc0548445babdb2cb223e0af Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Sun, 7 Jan 2024 07:23:21 -0700 Subject: [PATCH] asdf --- Dockerfile | 9 +++++---- repo_watcher.sh | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47b6310..ef0c593 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,11 @@ FROM alpine:latest RUN apk --no-cache add git curl rsync # Add script -COPY repo_watcher.sh /root/Repo_Watcher/repo_watcher.sh +COPY repo_watcher.sh /repo_watcher.sh +RUN chmod +x /repo_watcher.sh -# Make script executable -RUN chmod +x /root/Repo_Watcher/repo_watcher.sh +#Create Directory to store Repositories +RUN mkdir -p /root/Repo_Watcher # Start script (Alpine uses /bin/sh instead of /bin/bash) -CMD ["/bin/sh", "-c", "/root/Repo_Watcher/repo_watcher.sh"] \ No newline at end of file +CMD ["/bin/sh", "-c", "/repo_watcher.sh"] \ No newline at end of file diff --git a/repo_watcher.sh b/repo_watcher.sh index 9c3c25d..567db68 100644 --- a/repo_watcher.sh +++ b/repo_watcher.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Function to process each repo-destination pair process_repo() {