merge pull request #12 from waja/flat

Reorder Dockerfile for less layers
This commit is contained in:
Fco. Javier Delgado del Hoyo 2018-02-13 11:25:14 +01:00 committed by GitHub
commit fb4533079e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,15 @@
FROM alpine:3.7
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
COPY ["run.sh", "backup.sh", "restore.sh", "/"]
RUN apk add --update bash mysql-client gzip && rm -rf /var/cache/apk/* && mkdir /backup &&\
chmod u+x /backup.sh /restore.sh
ENV CRON_TIME="0 3 * * sun" \
MYSQL_HOST="mysql" \
MYSQL_PORT="3306"
COPY ["run.sh", "backup.sh", "restore.sh", "/"]
RUN chmod u+x /backup.sh /restore.sh
VOLUME ["/backup"]
CMD ["/run.sh"]