Switch Arch to Alpine
This commit is contained in:
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"]
|
Reference in New Issue
Block a user