Merge app dockerfiles (#146)

* Merge app dockerfiles

* Update readme for choosing team edition
This commit is contained in:
Kyâne Pichou authored and GitHub committed 2017-09-24 22:25:47 +02:00
1 parent 250f9e3185
commit 6ee75f4f6b
3 files changed
+14 -7

No files matched your search

+6 -2
View File
@@ -4,6 +4,9 @@ FROM ubuntu:14.04
ENV PATH="/mattermost/bin:${PATH}"
ENV MM_VERSION=4.2.0
# Build argument to set Mattermost edition
ARG edition=entreprise
# Install some needed packages
RUN apt-get update \
&& apt-get -y install \
@@ -12,9 +15,10 @@ RUN apt-get update \
netcat \
&& rm -rf /var/lib/apt/lists/*
# Prepare Mattermost
# Get Mattermost
RUN mkdir -p /mattermost/data \
&& curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz \
&& if [ "$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