Move filebeat installation to the build stage

This commit is contained in:
Manuel Gutierrez
2020-09-02 17:55:18 +02:00
parent 9df61de961
commit b63c294288
2 changed files with 3 additions and 8 deletions
+3
View File
@@ -76,5 +76,8 @@ RUN chmod +x /etc/service/wazuh-api/run && \
ADD https://raw.githubusercontent.com/wazuh/wazuh/$TEMPLATE_VERSION/extensions/elasticsearch/7.x/wazuh-template.json /etc/filebeat
RUN chmod go-w /etc/filebeat/wazuh-template.json
ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.1.tar.gz"
RUN curl -s https://packages.wazuh.com/3.x/filebeat/${WAZUH_FILEBEAT_MODULE} | tar -xvz -C /usr/share/filebeat/module
# Run all services
ENTRYPOINT ["/entrypoint.sh"]