-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
30 lines (23 loc) · 911 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM alpine:3.4
MAINTAINER [email protected]
ENV MATTERMOST_VERSION=3.5.1 \
MATTERMOST_HOME="/opt/mattermost"
ENV MATTERMOST_DATA_DIR="${MATTERMOST_HOME}/data" \
MATTERMOST_BUILD_DIR="${MATTERMOST_HOME}/build" \
MATTERMOST_RUNTIME_DIR="${MATTERMOST_HOME}/runtime" \
MATTERMOST_INSTALL_DIR="${MATTERMOST_HOME}/mattermost" \
MATTERMOST_CONF_DIR="${MATTERMOST_HOME}/config" \
MATTERMOST_LOG_DIR="/var/log/mattermost"
RUN apk --no-cache add bash gettext \
mysql-client postgresql-client \
ca-certificates
COPY assets/build/ ${MATTERMOST_BUILD_DIR}/
RUN bash ${MATTERMOST_BUILD_DIR}/install.sh
COPY assets/runtime/ ${MATTERMOST_RUNTIME_DIR}/
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
EXPOSE 80/tcp
VOLUME ["${MATTERMOST_DATA_DIR}", "${MATTERMOST_LOG_DIR}"]
WORKDIR ${MATTERMOST_INSTALL_DIR}
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["app:start"]