Created
July 30, 2019 06:53
-
-
Save voyagerwoo/1dce9b376224cda41e66ed3114875f0e to your computer and use it in GitHub Desktop.
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
| FROM openjdk:8-jdk-alpine | |
| RUN apk --no-cache add curl tzdata && cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime | |
| RUN adduser -D -s /bin/sh voyagerwoo | |
| USER voyagerwoo | |
| WORKDIR /home/voyagerwoo | |
| ARG JAR_FILE | |
| COPY target/${JAR_FILE} app.jar | |
| ENV PROFILE=local | |
| ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=${PROFILE}","-jar","app.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment