FROM ubuntu:14.04 RUN apt-get update && apt-get -y install curl netcat RUN mkdir -p /mattermost/data RUN curl https://releases.mattermost.com/3.0.1/mattermost-team-3.0.1-linux-amd64.tar.gz | tar -xvz COPY config.template.json / COPY docker-entry.sh / RUN chmod +x /docker-entry.sh ENTRYPOINT ["/docker-entry.sh"] EXPOSE 80