-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) Β· 797 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) Β· 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM eclipse-temurin:21-jdk-alpine AS builder
WORKDIR /build
COPY . .
RUN chmod +x gradlew && ./gradlew :argus-cli:fatJar -x test --no-daemon
FROM eclipse-temurin:21-jre-alpine
LABEL org.opencontainers.image.title="Argus" \
org.opencontainers.image.description="Lightweight JVM Diagnostic Toolkit β 50+ CLI commands" \
org.opencontainers.image.url="https://github.com/rlaope/Argus" \
org.opencontainers.image.source="https://github.com/rlaope/Argus"
COPY --from=builder /build/argus-cli/build/libs/argus-cli-*-all.jar /opt/argus/argus-cli.jar
# Create wrapper script
RUN echo '#!/bin/sh' > /usr/local/bin/argus && \
echo 'exec java -jar /opt/argus/argus-cli.jar "$@"' >> /usr/local/bin/argus && \
chmod +x /usr/local/bin/argus
ENTRYPOINT ["argus"]
CMD ["--help"]