fix user; move crontab
This commit is contained in:
parent
0bc7b51979
commit
188ee56d7a
|
|
@ -2,17 +2,18 @@ FROM alpine:latest
|
|||
MAINTAINER "Tyler Bean" "tyler.j.bean@gmail.com"
|
||||
|
||||
RUN apk add --no-cache sqlite
|
||||
RUN adduser -D -H -u 1001 abc
|
||||
|
||||
COPY ./backupscripts/15min_backup /bin/15min_backup
|
||||
COPY ./backupscripts/hourly_backup /bin/hourly_backup
|
||||
COPY ./backupscripts/daily_backup /bin/daily_backup
|
||||
COPY ./backupscripts/weekly_backup /bin/weekly_backup
|
||||
COPY ./backupscripts/monthly_backup /bin/monthly_backup
|
||||
COPY ./backupscripts/abc /var/spool/cron/crontabs/abc
|
||||
COPY ./backupscripts/abc /etc/crontabs/
|
||||
RUN chmod +x /bin/15min_backup
|
||||
RUN chmod +x /bin/hourly_backup
|
||||
RUN chmod +x /bin/daily_backup
|
||||
RUN chmod +x /bin/weekly_backup
|
||||
RUN chmod +x /bin/monthly_backup
|
||||
|
||||
ENTRYPOINT ["crond","-f","-l","2"]
|
||||
ENTRYPOINT ["crond","-f","-l","8","-L","/dev/stdout"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue