merge COPY in Dockerfile

This commit is contained in:
Fco. Javier Delgado del Hoyo 2017-09-11 09:36:38 +02:00
parent b3bb91adf7
commit cf9e0bac0d

View file

@ -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"]