Created
February 25, 2020 18:57
-
-
Save thinkmicroservices/805454fc585d71825658523767575bcf to your computer and use it in GitHub Desktop.
content-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 | |
| # install curl | |
| RUN apk add --update \ | |
| curl \ | |
| && rm -rf /var/cache/apk/* | |
| # 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 4040 | |
| ENTRYPOINT ["java","-cp","app:app/lib/*","com.thinkmicroservices.ri.spring.web.ContentService"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment