Email invitation sent without link

I am using the dokcer version - latest from https://releases.mattermost.com/5.27.0/mattermost-5.27.0-linux-amd64.tar.gz?src=docker - I have this in my Dockerfile settings and I build my Server using the Settings posted in the github.

FROM alpine:3.12

# Some ENV variables
ENV PATH="/mattermost/bin:${PATH}"
ARG PUID=2000
ARG PGID=2000
ARG edition=team
ARG MM_PACKAGE="https://releases.mattermost.com/5.27.0/mattermost-5.27.0-linux-amd64.tar.gz?src=docker"


# Install some needed packages
RUN apk add --no-cache \
  ca-certificates \
  jq \
  curl \
  libc6-compat \
  libffi-dev \
  linux-headers \
  mailcap \
  netcat-openbsd \
  xmlsec-dev \
  tzdata \
  && rm -rf /tmp/*

# Get Mattermost
RUN mkdir -p /mattermost/data /mattermost/plugins /mattermost/client/plugins \
  && if [ ! -z "$MM_PACKAGE" ]; then curl $MM_PACKAGE | tar -xvz ; \
  else echo "please set the MM_PACKAGE" ; fi \
  && addgroup -g ${PGID} mattermost \
  && adduser -D -u ${PUID} -G mattermost -h /mattermost -D mattermost \
  && chown -R mattermost:mattermost /mattermost /mattermost/plugins /mattermost/client/plugins

The above is the content of my Dockerfile - as I used the same as the one in the github.

Thanks