mobilefish

Untitled

Apr 4th, 2020
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # stage 1
  2.  
  3. FROM maven:amazoncorretto AS backend
  4. WORKDIR /app
  5. COPY . .
  6. RUN mvn install
  7.  
  8. # stage 2
  9.  
  10. FROM amazoncorretto:latest
  11. RUN mkdir -p /etc/opt/test/
  12.  
  13. RUN chmod -R 777 /etc/opt/test
  14. WORKDIR /tmp
  15. RUN yum update -y
  16. RUN yum install -y python3-pip && pip3 install awscli --upgrade --user
  17. RUN yum install -y awslogs
  18.  
  19. # copy build artifact JAR file
  20. COPY --from=backend /app/target /tmp
  21. COPY --from=backend /app/test-job.sh /tmp
  22.  
  23. RUN chmod +x /tmp/test-job.sh
  24. ENTRYPOINT ["/tmp/test-job.sh"]
  25. EXPOSE 9060
Add Comment
Please, Sign In to add comment