Skip to content

Instantly share code, notes, and snippets.

@yusufcakal
Created November 28, 2019 19:38
Show Gist options
  • Save yusufcakal/46d8a0d857042d0c8c8597713fea8403 to your computer and use it in GitHub Desktop.
Save yusufcakal/46d8a0d857042d0c8c8597713fea8403 to your computer and use it in GitHub Desktop.
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