Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # stage 1
- FROM amazoncorretto:latest AS backend
- RUN yum install -y maven
- WORKDIR /app
- COPY . .
- RUN mvn install
- # stage 2
- FROM amazoncorretto:latest
- WORKDIR /tmp
- RUN yum update -y
- RUN yum install -y python3-pip && pip3 install awscli --upgrade --user
- RUN yum install -y awslogs
- COPY --from=backend /app/target /tmp
- COPY --from=backend /app/start.sh /tmp
- WORKDIR /tmp
- RUN ls -l
- RUN chmod +x /tmp/start.sh
- ENTRYPOINT ["/tmp/start.sh"]
- EXPOSE 9097
Add Comment
Please, Sign In to add comment