Skip to content

Commit ae6bd28

Browse files
committed
fix from and entrypoint
1 parent ce25bdc commit ae6bd28

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
FROM ptkis/ubuntu-ffmpeg:22.04-jdk17-20221130
2-
3-
RUN curl --location https://www.yourkit.com/download/docker/YourKit-JavaProfiler-2022.9-docker.zip -o /tmp/YourKit-JavaProfiler.zip && \
4-
unzip /tmp/YourKit-JavaProfiler.zip -d /usr/local && \
5-
rm /tmp/YourKit-JavaProfiler.zip
6-
7-
EXPOSE 10001
1+
FROM eclipse-temurin:17.0.10_7-jdk-alpine
82

93
ARG VERSION
104
ARG ARTIFACT

src/docker/entrypoint.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@
22
#show all environment
33
export
44

5-
[[ -z "$YOURKIT_BROKER_URL" ]] && { echo "Please set YOURKIT_BROKER_URL" ; exit 1; }
6-
[[ -z "$YOURKIT_BROKER_TOKEN" ]] && { echo "Please set YOURKIT_BROKER_TOKEN" ; exit 1; }
7-
8-
exec java -agentpath:/usr/local/YourKit-JavaProfiler-2022.9/bin/linux-x86-64/libyjpagent.so=broker_url=$YOURKIT_BROKER_URL,broker_token=$YOURKIT_BROKER_TOKEN $JAVA_OPTS -jar "$ARTIFACT-$VERSION.jar" $@
5+
exec java $JAVA_OPTS -jar "$ARTIFACT-$VERSION.jar" $@

0 commit comments

Comments
 (0)