Skip to content
Snippets Groups Projects
Verified Commit 7350ad0a authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

Put USER directive after chmod

parent 84c1a5dd
No related branches found
No related tags found
1 merge request!44Optimize CI and remove deployment steps, add Mattermost and update Etherpad
Pipeline #52088 passed
......@@ -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"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment