"Fossies" - the Fresh Open Source Software Archive

Member "mattermost-server-6.0.1/build/Dockerfile" (18 Oct 2021, 1371 Bytes) of package /linux/www/mattermost-server-6.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Dockerfile": 5.39.0_vs_6.0.0.

    1 FROM alpine:3.12
    2 
    3 # Some ENV variables
    4 ENV PATH="/mattermost/bin:${PATH}"
    5 ARG PUID=2000
    6 ARG PGID=2000
    7 ARG MM_PACKAGE="https://releases.mattermost.com/5.37.1/mattermost-5.37.1-linux-amd64.tar.gz?src=docker"
    8 
    9 
   10 # Install some needed packages
   11 RUN apk add --no-cache \
   12   ca-certificates \
   13   curl \
   14   libc6-compat \
   15   libffi-dev \
   16   linux-headers \
   17   mailcap \
   18   netcat-openbsd \
   19   xmlsec-dev \
   20   tzdata \
   21   wv \
   22   poppler-utils \
   23   tidyhtml \
   24   && rm -rf /tmp/*
   25 
   26 # Get Mattermost
   27 RUN mkdir -p /mattermost/data /mattermost/plugins /mattermost/client/plugins \
   28   && if [ ! -z "$MM_PACKAGE" ]; then curl $MM_PACKAGE | tar -xvz ; \
   29   else echo "please set the MM_PACKAGE" ; fi \
   30   && addgroup -g ${PGID} mattermost \
   31   && adduser -D -u ${PUID} -G mattermost -h /mattermost -D mattermost \
   32   && chown -R mattermost:mattermost /mattermost /mattermost/plugins /mattermost/client/plugins
   33 
   34 USER mattermost
   35 
   36 #Healthcheck to make sure container is ready
   37 HEALTHCHECK --interval=30s --timeout=10s \
   38   CMD curl -f http://localhost:8065/api/v4/system/ping || exit 1
   39 
   40 
   41 # Configure entrypoint and command
   42 COPY entrypoint.sh /
   43 ENTRYPOINT ["/entrypoint.sh"]
   44 WORKDIR /mattermost
   45 CMD ["mattermost"]
   46 
   47 EXPOSE 8065 8067 8074 8075
   48 
   49 # Declare volumes for mount point directories
   50 VOLUME ["/mattermost/data", "/mattermost/logs", "/mattermost/config", "/mattermost/plugins", "/mattermost/client/plugins"]