Dockerfile 391 B

123456789101112131415
  1. # Version 1.0.0
  2. FROM openjdk:8u302-jdk-oracle
  3. MAINTAINER LarryKoo "root@iamsee.com"
  4. # The environment variable
  5. ENV APP_NAME="railway-admin"
  6. ENV APP_VERSION=""
  7. ENV JAVA_OPTS=""
  8. ENV SPRINGBOOT_OPTS="--spring.profiles.active=prod"
  9. EXPOSE 2021
  10. COPY $APP_NAME/target/$APP_NAME.jar /app.jar
  11. ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar $SPRINGBOOT_OPTS