2017-11-22 11:28:17 +00:00
|
|
|
FROM ubuntu:16.04
|
2017-11-22 11:24:54 +00:00
|
|
|
MAINTAINER Glenn Y. Rolland <glenux@glenux.net>
|
|
|
|
|
2017-11-22 11:28:17 +00:00
|
|
|
# Some ENV variables
|
|
|
|
ENV PATH="/mattermost/bin:${PATH}"
|
|
|
|
ENV MM_VERSION=4.4.1
|
|
|
|
|
|
|
|
# Install some needed packages
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get -y --no-install-recommends install \
|
|
|
|
curl jq netcat ca-certificates \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin
|
|
|
|
|
|
|
|
# Get Mattermost
|
|
|
|
RUN mkdir -p /mattermost/data \
|
2017-11-22 11:34:35 +00:00
|
|
|
&& curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz \
|
|
|
|
; cp /mattermost/config/config.json /config.json.save \
|
2017-11-22 11:28:17 +00:00
|
|
|
&& rm -rf /mattermost/config/config.json
|
|
|
|
|
|
|
|
# Configure entrypoint and command
|
|
|
|
COPY entrypoint.sh /
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
WORKDIR /mattermost/bin
|
|
|
|
CMD ["platform"]
|
|
|
|
|
|
|
|
# Expose port 80 of the container
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
# Use a volume for the data directory
|
|
|
|
VOLUME /mattermost/data
|
2017-11-22 11:24:54 +00:00
|
|
|
|