Last active
February 22, 2020 02:08
-
-
Save thinkmicroservices/09b8b962b35f937c8027fc4c08f529cc to your computer and use it in GitHub Desktop.
Configuration Service Dockerfile
This file contains hidden or 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
# grab the base image | |
FROM openjdk:8-jdk-alpine | |
# create a working volume in tmp | |
VOLUME /tmp | |
#define the jar dependency files | |
ARG DEPENDENCY=target/dependency | |
COPY ${DEPENDENCY}/BOOT-INF/lib /app/lib | |
COPY ${DEPENDENCY}/META-INF /app/META-INF | |
COPY ${DEPENDENCY}/BOOT-INF/classes /app | |
# expose the container port the application will listen on | |
EXPOSE 8888 | |
# identify the application entry point | |
ENTRYPOINT ["java","-cp","app:app/lib/*","com.thinkmicroservices.ri.spring.config.ConfigurationService"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment