We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7253d5 commit eb0d53eCopy full SHA for eb0d53e
Dockerfile
@@ -45,5 +45,12 @@ COPY config/config.json config/config.json
45
COPY rule_templates/ /opt/elastalert/rule_templates
46
COPY elastalert_modules/ /opt/elastalert/elastalert_modules
47
48
+# Add default rules directory
49
+# Set permission as unpriviledged user (1000:1000), compatible with Kubernetes
50
+RUN mkdir -p /opt/elastalert/rules/ /opt/elastalert/server_data/tests/ \
51
+ && chown -R node:node /opt
52
+
53
+USER node
54
55
EXPOSE 3030
56
ENTRYPOINT ["npm", "start"]
0 commit comments