mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
merge COPY in Dockerfile
This commit is contained in:
parent
b3bb91adf7
commit
cf9e0bac0d
1 changed files with 4 additions and 6 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,5 +1,5 @@
|
||||||
FROM alpine
|
FROM alpine:3.5
|
||||||
MAINTAINER Fco. Javier Delgado del Hoyo <frandelhoyo@gmail.com>
|
LABEL maintainer "Fco. Javier Delgado del Hoyo <frandelhoyo@gmail.com>"
|
||||||
|
|
||||||
RUN apk add --update bash mysql-client gzip && rm -rf /var/cache/apk/* && mkdir /backup
|
RUN apk add --update bash mysql-client gzip && rm -rf /var/cache/apk/* && mkdir /backup
|
||||||
|
|
||||||
|
@ -7,10 +7,8 @@ ENV CRON_TIME="0 3 * * sun" \
|
||||||
MYSQL_HOST="mysql" \
|
MYSQL_HOST="mysql" \
|
||||||
MYSQL_PORT="3306"
|
MYSQL_PORT="3306"
|
||||||
|
|
||||||
COPY run.sh /run.sh
|
COPY ["run.sh", "backup.sh", "restore.sh", "/"]
|
||||||
COPY backup.sh /backup.sh
|
RUN chmod u+x /backup.sh /restore.sh
|
||||||
COPY restore.sh /restore.sh
|
|
||||||
RUN chmod +x /backup.sh /restore.sh
|
|
||||||
|
|
||||||
VOLUME ["/backup"]
|
VOLUME ["/backup"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue