Skip to content

Commit

Permalink
chore: Dockerfile updated
Browse files Browse the repository at this point in the history
  • Loading branch information
shiido committed Jun 27, 2022
1 parent d1f2406 commit 3856484
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,4 @@ buildNumber.properties
# "temporary" build files
/target

newrelic.yml
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@ FROM openjdk:11
ARG XMX=1024m
ARG PROFILE=production
ARG CLOUD_CONFIG
ARG NEW_RELIC_ENVIRONMENT

ENV XMX=$XMX
ENV PROFILE=$PROFILE
ENV CLOUD_CONFIG=$CLOUD_CONFIG
ENV NEW_RELIC_ENVIRONMENT=$NEW_RELIC_ENVIRONMENT

VOLUME /tmp

ADD ./target/st-microservice-reports-1.0.0.jar st-microservice-reports.jar
ADD ./target/st-microservice-reports-1.2.0.jar st-microservice-reports.jar
ADD ./target/newrelic.jar newrelic.jar
ADD ./newrelic.yml newrelic.yml

EXPOSE 8080

ENTRYPOINT java -Xmx$XMX -jar /st-microservice-reports.jar --spring.profiles.active=$PROFILE --spring.cloud.config.uri=$CLOUD_CONFIG
ENTRYPOINT java -javaagent:/newrelic.jar -Dnewrelic.environment=$NEW_RELIC_ENVIRONMENT -Xmx$XMX -jar /st-microservice-reports.jar --spring.profiles.active=$PROFILE --spring.cloud.config.uri=$CLOUD_CONFIG

0 comments on commit 3856484

Please sign in to comment.