File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ RUN --mount=type=cache,target=/var/cache/apk \
66ENV VERSION=1.4.0
77ENV JAR=jmx_prometheus_javaagent-$VERSION.jar
88
9- RUN curl -L https://github.com/prometheus/jmx_exporter/releases/download/$VERSION/$JAR -o /lib/$JAR
9+ RUN mkdir -p /opt/lib
10+ RUN curl -L https://github.com/prometheus/jmx_exporter/releases/download/$VERSION/$JAR -o /opt/lib/$JAR
1011
1112FROM alpine:3.22
12- COPY --from=tmp /lib /lib
13+ COPY --from=tmp /opt/ lib /opt /lib
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ Docker image that contains the JMX Prometheus javaagent library
33
44This should be used as a K8s init container for copying the library in other containers
55
6- The jar file is available at ` /lib/jmx_prometheus_javaagent-$VERSION.jar. `
6+ The jar file is available at ` /opt/ lib/jmx_prometheus_javaagent-$VERSION.jar. `
You can’t perform that action at this time.
0 commit comments