Archived
1 parent
2151040683
commit
6512a09608
5 files changed
+67
-124
No files matched your search
+29
-7
@@ -1,18 +1,40 @@
|
||||
FROM ubuntu:14.04
|
||||
|
||||
# Some ENV variables
|
||||
ENV PATH="/mattermost/bin:${PATH}"
|
||||
|
||||
RUN apt-get update && apt-get -y install curl netcat
|
||||
RUN mkdir -p /mattermost/data
|
||||
|
||||
ENV MM_VERSION=3.9.0
|
||||
|
||||
RUN curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz
|
||||
# Override default config
|
||||
ENV MM_SERVICESETTINGS_LISTENADDRESS=":80" \
|
||||
MM_LOGSETTINGS_ENABLECONSOLE=false \
|
||||
MM_LOGSETTINGS_CONSOLELEVEL="INFO" \
|
||||
MM_FILESETTINGS_DIRECTORY="/mattermost/data/" \
|
||||
MM_FILESETTINGS_ENABLEPUBLICLINK=true \
|
||||
MM_FILESETTINGS_PUBLICLINKSALT="A705AklYF8MFDOfcwh3I488G8vtLlVip" \
|
||||
MM_EMAILSETTINGS_SENDEMAILNOTIFICATIONS=false \
|
||||
MM_EMAILSETTINGS_FEEDBACKEMAIL="" \
|
||||
MM_EMAILSETTINGS_SMTPSERVER="" \
|
||||
MM_EMAILSETTINGS_SMTPPORT="" \
|
||||
MM_EMAILSETTINGS_INVITESALT="bjlSR4QqkXFBr7TP4oDzlfZmcNuH9YoS" \
|
||||
MM_RATELIMITSETTINGS_ENABLE=true \
|
||||
MM_SQLSETTINGS_DRIVERNAME="postgres"
|
||||
|
||||
RUN rm /mattermost/config/config.json
|
||||
COPY config.template.json /
|
||||
# Install some needed packages
|
||||
RUN apt-get update \
|
||||
&& apt-get -y install \
|
||||
curl \
|
||||
netcat \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Prepare Mattermost
|
||||
RUN mkdir -p /mattermost/data \
|
||||
&& 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 \
|
||||
&& rm -rf /mattermost/config/config.json
|
||||
|
||||
# Configure entrypoint
|
||||
COPY docker-entry.sh /
|
||||
# Set permission (TODO should be removed and replace by a chmod on the file in the repository ?)
|
||||
RUN chmod +x /docker-entry.sh
|
||||
ENTRYPOINT ["/docker-entry.sh"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user