Skip to content

Commit

Permalink
restore scratch target
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus Samitier committed Nov 6, 2023
1 parent f63615c commit e800f66
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ WORKDIR /opt/jmx_exporter
COPY . .
RUN mvn package -DskipTests

FROM anapsix/alpine-java:9 as scratch

RUN apk update && apk upgrade && apk --update add curl && rm -rf /tmp/* /var/cache/apk/*

ENV VERSION 0.20.1
ENV JAR jmx_prometheus_httpserver-$VERSION.jar
COPY --from=javabuilder /opt/jmx_exporter/jmx_prometheus_httpserver/target/jmx_prometheus_httpserver-$VERSION-SNAPSHOT.jar /opt/jmx_exporter/$JAR
COPY build/start.sh /opt/jmx_exporter
COPY build/config.yml /opt/jmx_exporter
RUN chmod +x /opt/jmx_exporter/start.sh

CMD ["/opt/jmx_exporter/start.sh"]

FROM quay.io/sysdig/sysdig-mini-ubi:1.5.8 as ubi

RUN microdnf --assumeyes --disableplugin=subscription-manager --nodocs update && \
Expand Down

0 comments on commit e800f66

Please # to comment.