2022-12-30 06:10:36 +00:00
|
|
|
FROM openjdk:11.0.16-jre-slim-buster
|
|
|
|
|
2023-10-11 02:30:34 +00:00
|
|
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
2023-03-03 08:26:09 +00:00
|
|
|
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-web-starter-boot-${PINPOINT_VERSION}.jar
|
2022-12-30 06:10:36 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /pinpoint/config \
|
|
|
|
&& mkdir -p /pinpoint/scripts
|
|
|
|
|
|
|
|
COPY /build/config/pinpoint-web.properties /pinpoint/config/
|
|
|
|
COPY /build/scripts/start-web.sh /pinpoint/scripts/
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean \
|
|
|
|
&& chmod a+x /pinpoint/scripts/start-web.sh \
|
|
|
|
&& chmod a+x /pinpoint/config/pinpoint-web.properties \
|
|
|
|
&& curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-web-boot.jar
|
|
|
|
|
|
|
|
#entry point to start-web.sh for future use.
|
|
|
|
ENTRYPOINT ["sh", "/pinpoint/scripts/start-web.sh"]
|