Skip to content

Instantly share code, notes, and snippets.

@thinkmicroservices
Last active February 22, 2020 02:08
Show Gist options
  • Save thinkmicroservices/09b8b962b35f937c8027fc4c08f529cc to your computer and use it in GitHub Desktop.
Save thinkmicroservices/09b8b962b35f937c8027fc4c08f529cc to your computer and use it in GitHub Desktop.
Configuration Service Dockerfile
# 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