From 1604e11a5b36f34cddda2693dc589a0926796a79 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Fri, 28 Sep 2018 15:01:06 +0200 Subject: [PATCH] add ability to build your own mm binary (#314) --- app/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Dockerfile b/app/Dockerfile index dd82f99..ea83661 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -8,6 +8,7 @@ ENV MM_VERSION=5.3.1 ARG edition=enterprise ARG PUID=2000 ARG PGID=2000 +ARG MM_BINARY= # Install some needed packages @@ -25,7 +26,8 @@ RUN apk add --no-cache \ # Get Mattermost RUN mkdir -p /mattermost/data \ - && if [ "$edition" = "team" ] ; then curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; \ + && if [ ! -z "$MM_BINARY" ]; then curl $MM_BINARY | tar -xvz ; \ + elif [ "$edition" = "team" ] ; then curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; \ else curl https://releases.mattermost.com/$MM_VERSION/mattermost-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; fi \ && cp /mattermost/config/config.json /config.json.save \ && rm -rf /mattermost/config/config.json \