Verified Commit 7350ad0a authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

Put USER directive after chmod

parent 84c1a5dd
Pipeline #52088 passed with stages
in 3 minutes and 45 seconds
......@@ -33,8 +33,6 @@ RUN mkdir -p /mattermost/data /mattermost/plugins /mattermost/client/plugins \
&& chown -R mattermost:mattermost /mattermost /config.json.save /mattermost/plugins /mattermost/client/plugins \
&& setcap cap_net_bind_service=+ep /mattermost/bin/mattermost
USER mattermost
#Healthcheck to make sure container is ready
HEALTHCHECK --interval=5m --timeout=3s CMD curl --fail http://localhost:8000//api/v4/system/ping || exit 1
......@@ -44,6 +42,8 @@ ENTRYPOINT ["/entrypoint.sh"]
RUN chmod +x /entrypoint.sh
USER mattermost
WORKDIR /mattermost
CMD ["mattermost"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment