Обновить Dockerfile

This commit is contained in:
2025-12-17 19:07:37 +00:00
parent 5e0e049a94
commit 72067aa65f

View File

@@ -34,22 +34,23 @@
# Create mattermost user
# RUN useradd --system --create-home --uid 2000 mattermost
RUN groupadd -r mattermost && useradd -r -g mattermost mattermost
# RUN groupadd -r mattermost && useradd -r -g mattermost mattermost
WORKDIR /opt/mattermost
WORKDIR /mattermost
# Copy prepared Mattermost tree with MostlyMatter binary inside
COPY --from=fetcher --chown=mattermost:mattermost /tmp/mattermost /opt/mattermost
#COPY --from=fetcher --chown=mattermost:mattermost /tmp/mattermost /opt/mattermost
COPY --from=fetcher /tmp/mattermost /mattermost
# Adjust permissions
#RUN chown -R mattermost:mattermost /mattermost
VOLUME ["/opt/mattermost/config", "/opt/mattermost/data", "/opt/mattermost/logs", "/opt/mattermost/plugins", "/opt/mattermost/client/plugins"]
#VOLUME ["/opt/mattermost/config", "/opt/mattermost/data", "/opt/mattermost/logs", "/opt/mattermost/plugins", "/opt/mattermost/client/plugins"]
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
ENTRYPOINT ["/opt/mattermost/bin/mostlymatter"]
ENTRYPOINT ["/mattermost/bin/mostlymatter"]
CMD ["server"]