diff --git a/Dockerfile b/Dockerfile index 19d4291..566dc54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM alpine -MAINTAINER Fco. Javier Delgado del Hoyo +FROM alpine:3.5 +LABEL maintainer "Fco. Javier Delgado del Hoyo " 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"]