Switch Arch to Alpine
This commit is contained in:
parent
bb82423afd
commit
7417679777
10
Dockerfile
10
Dockerfile
@ -1,8 +1,8 @@
|
||||
FROM ubuntu:latest
|
||||
# Use Alpine as the base image
|
||||
FROM alpine:latest
|
||||
|
||||
# Install necessary packages
|
||||
RUN apt-get update && \
|
||||
apt-get install -y git curl rsync
|
||||
RUN apk --no-cache add git curl rsync
|
||||
|
||||
# Add script
|
||||
COPY repo_watcher.sh /root/Repo_Watcher/repo_watcher.sh
|
||||
@ -10,5 +10,5 @@ COPY repo_watcher.sh /root/Repo_Watcher/repo_watcher.sh
|
||||
# Make script executable
|
||||
RUN chmod +x /root/Repo_Watcher/repo_watcher.sh
|
||||
|
||||
# Start script
|
||||
CMD ["/bin/bash", "-c", "/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"]
|
@ -3,13 +3,6 @@ services:
|
||||
git-repo-updater:
|
||||
privileged: true
|
||||
container_name: git-repo-updater
|
||||
environment:
|
||||
- REPO_URL=${REPO_URL}
|
||||
- COPY_DIR=${COPY_DIR}
|
||||
- NTFY_URL=${NTFY_URL}
|
||||
- GIT_USERNAME=${GIT_USERNAME}
|
||||
- GIT_PASSWORD=${GIT_PASSWORD}
|
||||
- TZ=America/Denver
|
||||
image: git.cyberstrawberry.net/container-registry/git-repo-updater:latest
|
||||
volumes:
|
||||
#This folder is where the repository will be downloaded and updated - it needs a unique folder name.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
while true; do
|
||||
# Set Git credentials
|
||||
|
Loading…
x
Reference in New Issue
Block a user