0% found this document useful (0 votes)
3 views1 page

Java 8 Dockerfile for BookMyMovie App

This Dockerfile sets up a Java 8 environment and installs Git. It clones a repository from GitHub, builds the project while skipping tests, and adds the generated JAR file to the container. Finally, it specifies the command to run the JAR and exposes port 8080 for access.

Uploaded by

rmdmohan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Java 8 Dockerfile for BookMyMovie App

This Dockerfile sets up a Java 8 environment and installs Git. It clones a repository from GitHub, builds the project while skipping tests, and adds the generated JAR file to the container. Finally, it specifies the command to run the JAR and exposes port 8080 for access.

Uploaded by

rmdmohan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

FROM java:8-jdk

MAINTAINER Vaibhav Sood <vaibhavsood12@[Link]>

RUN apt-get update \


&& apt-get install -y git

RUN git clone [Link] \


&& cd BookMyMovie \
&& chmod +x mvnw \
&& ./mvnw -DskipTests=true package

ADD ./target/[Link] /root/


CMD ["java", "-jar", "/root/[Link]"]

EXPOSE 8080

You might also like