Обновить Dockerfile
This commit is contained in:
@@ -35,19 +35,19 @@
|
|||||||
# Create mattermost user
|
# Create mattermost user
|
||||||
# RUN useradd --system --create-home --uid 2000 mattermost
|
# 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
|
||||||
RUN useradd -r -u 1001 mattermost
|
#RUN useradd -r -u 1001 mattermost
|
||||||
|
|
||||||
WORKDIR /opt/mattermost
|
WORKDIR /opt/mattermost
|
||||||
|
|
||||||
# Copy prepared Mattermost tree with MostlyMatter binary inside
|
# 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
|
COPY --from=fetcher /tmp/mattermost /opt/mattermost
|
||||||
|
|
||||||
# Adjust permissions
|
# Adjust permissions
|
||||||
#RUN chown -R mattermost:mattermost /opt/mattermost
|
#RUN chown -R mattermost:mattermost /opt/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 1001
|
#USER mattermost
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -f http://localhost:8065/api/v4/system/ping || exit 1
|
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -f http://localhost:8065/api/v4/system/ping || exit 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user