From 0c29ac1adb5e6d1277374123b2e30a7f3f54c32e Mon Sep 17 00:00:00 2001 From: Ben D'Angelo Date: Mon, 8 Jun 2020 23:06:39 +0800 Subject: [PATCH] Use args to select wanted arch and os --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e96533e..287013c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,13 @@ LABEL maintainer "Fco. Javier Delgado del Hoyo " RUN apk add --update bash mysql-client gzip openssl && rm -rf /var/cache/apk/* -ENV DOCKERIZE_VERSION v0.6.1 -RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ - && tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ - && rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz +ARG OS=alpine-linux +ARG ARCH=amd64 +ARG DOCKERIZE_VERSION=v0.6.1 + +RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-$OS-$ARCH-$DOCKERIZE_VERSION.tar.gz \ + && tar -C /usr/local/bin -xzvf dockerize-$OS-$ARCH-$DOCKERIZE_VERSION.tar.gz \ + && rm dockerize-$OS-$ARCH-$DOCKERIZE_VERSION.tar.gz ENV CRON_TIME="0 3 * * sun" \ MYSQL_HOST="mysql" \