-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
FROM alpine:latest | ||
|
||
LABEL MAINTAINER [email protected] | ||
LABEL VERSION 1.0.0 | ||
LABEL VERSION 1.0.1 | ||
|
||
# 安装必要的工具 | ||
RUN apk add --no-cache bash curl tar pv | ||
RUN apk add --no-cache bash curl tar pv && mkdir -p /data | ||
|
||
# 复制脚本到容器 | ||
COPY --chmod=755 *.sh / | ||
|
||
# 设置环境变量 | ||
ENV WEBDAV_URL="" | ||
ENV WEBDAV_USERNAME="" | ||
ENV WEBDAV_PASSWORD="" | ||
ENV WEBDAV_PATH="" | ||
ENV BACKUP_DIRS="" | ||
ENV BACKUP_INTERVAL="60" | ||
ENV BACKUP_DIRS="/data" | ||
ENV BACKUP_TASK_NAME="默认备份任务" | ||
|
||
# 运行脚本 | ||
CMD ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters