feat: cron done, admin unfinished
This commit is contained in:
+11
-4
@@ -1,9 +1,16 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache docker-cli bash findutils postgresql-client
|
||||
RUN apk add --no-cache docker-cli bash findutils postgresql-client cronie
|
||||
|
||||
COPY backup.sh /backup.sh
|
||||
RUN chmod +x /backup.sh
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["/backup.sh"]
|
||||
COPY backup.sh crontab.txt ./
|
||||
|
||||
RUN chmod +x backup.sh
|
||||
|
||||
RUN crontab crontab.txt
|
||||
|
||||
RUN touch /var/log/cron.log
|
||||
|
||||
CMD ["crond", "-f"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user