mobilefish

Untitled

Apr 23rd, 2020
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. # stage 1
  2.  
  3. FROM amazoncorretto:latest AS backend
  4.  
  5. RUN yum install -y maven
  6.  
  7. WORKDIR /app
  8. COPY . .
  9. RUN mvn install
  10.  
  11. # stage 2
  12.  
  13. FROM amazoncorretto:latest
  14.  
  15. WORKDIR /tmp
  16. RUN yum update -y
  17. RUN yum install -y python3-pip && pip3 install awscli --upgrade --user
  18. RUN yum install -y awslogs
  19.  
  20. COPY --from=backend /app/target /tmp
  21. COPY --from=backend /app/start.sh /tmp
  22.  
  23. WORKDIR /tmp
  24. RUN ls -l
  25.  
  26. RUN chmod +x /tmp/start.sh
  27. ENTRYPOINT ["/tmp/start.sh"]
  28. EXPOSE 9097
Add Comment
Please, Sign In to add comment