diff --git a/app/Dockerfile b/app/Dockerfile index 26be930..e76cae0 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.6 # Some ENV variables ENV PATH="/mattermost/bin:${PATH}" -ENV MM_VERSION=4.10.1 +ENV MM_VERSION=5.0.0 # Build argument to set Mattermost edition ARG edition=enterprise @@ -44,7 +44,7 @@ HEALTHCHECK CMD curl --fail http://localhost:8000 || exit 1 COPY entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"] WORKDIR /mattermost -CMD ["platform"] +CMD ["mattermost"] # Expose port 8000 of the container EXPOSE 8000 diff --git a/app/entrypoint.sh b/app/entrypoint.sh index 99a2dfe..3e17520 100755 --- a/app/entrypoint.sh +++ b/app/entrypoint.sh @@ -14,10 +14,10 @@ MM_DBNAME=${MM_DBNAME:-mattermost} MM_CONFIG=${MM_CONFIG:-/mattermost/config/config.json} if [ "${1:0:1}" = '-' ]; then - set -- platform "$@" + set -- mattermost "$@" fi -if [ "$1" = 'platform' ]; then +if [ "$1" = 'mattermost' ]; then # Check CLI args for a -config option for ARG in $@; do @@ -77,7 +77,7 @@ if [ "$1" = 'platform' ]; then # Necessary to avoid "panic: Failed to open sql connection pq: the database system is starting up" sleep 1 - echo "Starting platform" + echo "Starting mattermost" fi exec "$@"