Skip to content

Instantly share code, notes, and snippets.

@voyagerwoo
Created July 30, 2019 06:53
Show Gist options
  • Select an option

  • Save voyagerwoo/1dce9b376224cda41e66ed3114875f0e to your computer and use it in GitHub Desktop.

Select an option

Save voyagerwoo/1dce9b376224cda41e66ed3114875f0e to your computer and use it in GitHub Desktop.
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