forked from opensearch-project/dashboards-observability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (15 loc) · 645 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Declare a build argument for the version
ARG VERSION
# Use OpenSearch image as base
FROM opensearchproject/opensearch-dashboards:${VERSION}
# Copy plugin zip into image
COPY ./build /tmp
USER root
RUN mv /tmp/observabilityDashboards*.zip /tmp/observabilityDashboards.zip
USER opensearch-dashboards
RUN /usr/share/opensearch-dashboards/bin/opensearch-dashboards-plugin remove observabilityDashboards && \
/usr/share/opensearch-dashboards/bin/opensearch-dashboards-plugin install file:///tmp/observabilityDashboards.zip
USER root
RUN rm -r /tmp/observabilityDashboards.zip
# Switch back to opensearch user
USER opensearch-dashboards