mobilefish

Untitled

Apr 23rd, 2020
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 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.  
  12. WORKDIR /tmp
  13. RUN yum update -y
  14. RUN yum install -y python3-pip && pip3 install awscli --upgrade --user
  15. RUN yum install -y awslogs
  16.  
  17. COPY --from=backend /app/target /tmp
  18. COPY --from=backend /app/start.sh /tmp
  19.  
  20. WORKDIR /tmp
  21. RUN ls -l
  22.  
  23. RUN chmod +x /tmp/start.sh
  24. ENTRYPOINT ["/tmp/start.sh"]
  25. EXPOSE 9090
Add Comment
Please, Sign In to add comment