Created
November 28, 2019 19:38
-
-
Save yusufcakal/46d8a0d857042d0c8c8597713fea8403 to your computer and use it in GitHub Desktop.
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
FROM adoptopenjdk:11-jre-hotspot | |
ADD target/*.jar ./srv | |
WORKDIR /srv | |
EXPOSE 8089 | |
ENV ACTIVE_PROFILE ${ACTIVE_PROFILE} | |
ENV CONFIG_GIT_REPO_NAME ${CONFIG_GIT_REPO_NAME} | |
ENV CONFIG_GIT_USERNAME ${CONFIG_GIT_USERNAME} | |
ENV CONFIG_GIT_PASSWORD ${CONFIG_GIT_PASSWORD} | |
CMD java -Dspring.profiles.active=$ACTIVE_PROFILE -jar /srv/*.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment