-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pavol Loffay <[email protected]>
- Loading branch information
1 parent
71cb6f5
commit 5828af5
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,7 @@ | |
# the License. | ||
# | ||
|
||
FROM openjdk:alpine | ||
|
||
MAINTAINER Pavol Loffay <[email protected]> | ||
FROM openjdk:8-jdk-slim as builder | ||
|
||
ENV APP_HOME /app/ | ||
|
||
|
@@ -30,10 +28,17 @@ COPY mvnw $APP_HOME | |
WORKDIR $APP_HOME | ||
RUN ./mvnw package -Dlicense.skip=true -DskipTests && rm -rf ~/.m2 | ||
|
||
FROM openjdk:8-jre-slim | ||
MAINTAINER Pavol Loffay <[email protected]> | ||
ENV APP_HOME /app/ | ||
COPY --from=builder $APP_HOME/jaeger-spark-dependencies/target/jaeger-spark-dependencies-0.0.1-SNAPSHOT.jar $APP_HOME/ | ||
|
||
WORKDIR $APP_HOME | ||
|
||
COPY entrypoint.sh / | ||
|
||
RUN chgrp root /etc/passwd && chmod g+rw /etc/passwd | ||
USER 185 | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD java ${JAVA_OPTS} -jar jaeger-spark-dependencies/target/jaeger-spark-dependencies-0.0.1-SNAPSHOT.jar | ||
CMD java ${JAVA_OPTS} -jar $APP_HOME/jaeger-spark-dependencies-0.0.1-SNAPSHOT.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters