From b516610027530cd9e474f4842bb9801caa38a411 Mon Sep 17 00:00:00 2001 From: nchebrov Date: Wed, 17 Dec 2025 17:49:36 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00870af..560ef5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,16 +35,19 @@ # Create mattermost user # RUN useradd --system --create-home --uid 2000 mattermost + RUN groupadd -r mattermost && useradd -r -g mattermost mattermost WORKDIR /mattermost # Copy prepared Mattermost tree with MostlyMatter binary inside - COPY --from=fetcher /tmp/mattermost /mattermost + COPY --from=fetcher --chown=mattermost:mattermost /tmp/mattermost /mattermost # Adjust permissions # RUN chown -R mattermost:mattermost /mattermost -# USER mattermost + USER mattermost + + HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -f http://localhost:8065/api/v4/system/ping || exit 1 EXPOSE 8065