mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-16 23:51:15 +00:00
feat: backup
This commit is contained in:
28
Dockerfile.backup
Normal file
28
Dockerfile.backup
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM alpine:latest
|
||||
|
||||
# Install required packages
|
||||
RUN apk add --no-cache \
|
||||
bash \
|
||||
mysql-client \
|
||||
rclone \
|
||||
tzdata \
|
||||
supercronic \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
# Set timezone (optional, adjust as needed)
|
||||
ENV TZ=UTC
|
||||
|
||||
# Create backup directory
|
||||
RUN mkdir -p /backup/local
|
||||
|
||||
# Copy backup script
|
||||
COPY backup.sh /usr/local/bin/backup.sh
|
||||
RUN chmod +x /usr/local/bin/backup.sh
|
||||
|
||||
# Copy entrypoint script
|
||||
COPY backup-entrypoint.sh /usr/local/bin/backup-entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/backup-entrypoint.sh
|
||||
|
||||
WORKDIR /backup
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/backup-entrypoint.sh"]
|
||||
Reference in New Issue
Block a user