Skip to Content
Full Stack Development with JHipster
book

Full Stack Development with JHipster

by Deepu K Sasidharan, Sendil Kumar N
March 2018
Intermediate to advanced content levelIntermediate to advanced
380 pages
9h 23m
English
Packt Publishing
Content preview from Full Stack Development with JHipster

The Dockerfile

A Dockerfile is a set of instructions that tells Docker how to build a Docker image. By running the docker build command on a specific Dockerfile, we will produce a docker image that can be used to create Docker containers. Existing docker images can be used as a base for new Dockerfiles, hence letting you reuse and extend existing images.

The following code is from the Dockerfile of our application:

FROM openjdk:8-jre-alpineENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \    JHIPSTER_SLEEP=0 \    JAVA_OPTS=""CMD echo "The application will start in ${JHIPSTER_SLEEP}s..." && \    sleep ${JHIPSTER_SLEEP} && \    java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /app.warEXPOSE 8080 5701/udpADD *.war /app.war

The FROM instruction specifies ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Full Stack Development with JHipster - Second Edition

Full Stack Development with JHipster - Second Edition

Deepu K Sasidharan, Sendil Kumar Nellaiyapen
Jasmine Cookbook

Jasmine Cookbook

Munish Kumar

Publisher Resources

ISBN: 9781788476317Supplemental Content