Dockerfile 384 B

123456789
  1. FROM openjdk:8-jdk-alpine
  2. VOLUME /tmp
  3. ARG JAVA_OPTS
  4. ENV JAVA_OPTS=$JAVA_OPTS
  5. COPY target/questionaire-api-1.0-SNAPSHOT.jar questionaire.jar
  6. EXPOSE 3000
  7. ENTRYPOINT exec java $JAVA_OPTS -jar questionaire.jar
  8. # For Spring-Boot project, use the entrypoint below to reduce Tomcat startup time.
  9. #ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar questionaire.jar