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
|
||||
MAINTAINER Fco. Javier Delgado del Hoyo <frandelhoyo@gmail.com>
|
||||
FROM alpine:3.5
|
||||
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
|
||||
|
||||
|
@ -7,10 +7,8 @@ ENV CRON_TIME="0 3 * * sun" \
|
|||
MYSQL_HOST="mysql" \
|
||||
MYSQL_PORT="3306"
|
||||
|
||||
COPY run.sh /run.sh
|
||||
COPY backup.sh /backup.sh
|
||||
COPY restore.sh /restore.sh
|
||||
RUN chmod +x /backup.sh /restore.sh
|
||||
COPY ["run.sh", "backup.sh", "restore.sh", "/"]
|
||||
RUN chmod u+x /backup.sh /restore.sh
|
||||
|
||||
VOLUME ["/backup"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue