jetbrains-tools / Dockerfile
focusprogram's picture
Update Dockerfile
7e0954f
raw
history blame contribute delete
545 Bytes
FROM maven:3-ibm-semeru-21-jammy as build
WORKDIR /app
COPY . .
# improve maven download speed(Domestic network)
# COPY config/settings.xml /root/.m2/
RUN mvn clean package
FROM ibm-semeru-runtimes:open-21-jre
WORKDIR /app
COPY --from=build /app/target/Jetbrains-Help.jar Jetbrains-Help.jar
COPY --from=build /app/external/ external/
COPY --from=build /app/nested:/ nested:/
ENV TZ=Asia/Shanghai
RUN ln -sf /usr/share/zoneinfo/{TZ} /etc/localtime && echo "{TZ}" > /etc/timezone
EXPOSE 10768
ENTRYPOINT ["java", "-jar", "Jetbrains-Help.jar"]