Update Dockerfile
Browse files- Dockerfile +38 -1
Dockerfile
CHANGED
@@ -1 +1,38 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
2 |
+
# See License.txt for license information.
|
3 |
+
FROM postgres:12
|
4 |
+
|
5 |
+
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29
|
6 |
+
RUN apt-get update && apt-get install -y ca-certificates
|
7 |
+
|
8 |
+
#
|
9 |
+
# Configure SQL
|
10 |
+
#
|
11 |
+
|
12 |
+
ENV POSTGRES_USER=mmuser
|
13 |
+
ENV POSTGRES_PASSWORD=mostest
|
14 |
+
ENV POSTGRES_DB=mattermost_test
|
15 |
+
|
16 |
+
#
|
17 |
+
# Configure Mattermost
|
18 |
+
#
|
19 |
+
WORKDIR /mm
|
20 |
+
|
21 |
+
# Copy over files
|
22 |
+
ADD https://releases.mattermost.com/9.7.1/mattermost-team-9.7.1-linux-amd64.tar.gz .
|
23 |
+
RUN tar -zxvf mattermost-team-*-linux-amd64.tar.gz
|
24 |
+
ADD config_docker.json ./mattermost/config/config_docker.json
|
25 |
+
ADD docker-entry.sh .
|
26 |
+
|
27 |
+
RUN chmod +x ./docker-entry.sh
|
28 |
+
ENTRYPOINT ./docker-entry.sh
|
29 |
+
|
30 |
+
# Mattermost environment variables
|
31 |
+
ENV PATH="/mm/mattermost/bin:${PATH}"
|
32 |
+
|
33 |
+
# Create default storage directory
|
34 |
+
RUN mkdir ./mattermost-data
|
35 |
+
VOLUME /mm/mattermost-data
|
36 |
+
|
37 |
+
# Ports
|
38 |
+
EXPOSE 8065
|