Skip to content

Commit cb90153

Browse files
committed
commenting Dockerfile with more information
1 parent 0a933bb commit cb90153

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Use a base image that has Java and Ant installed
1+
# Use a base image that has Java and Ant installed (name it builder)
22
FROM openjdk:11-jdk-slim AS builder
33

44
# Set environment variables for ANT and IVY versions
@@ -18,7 +18,7 @@ ENV PATH="${PATH}:${ANT_HOME}/bin"
1818
# Set the working directory inside the container
1919
WORKDIR /app
2020

21-
# Copy the build.xml and ivy.xml files into the container
21+
# Copy the build.xml and ivy.xml files into the container. Make sure the build.xml has a target that installs ivy.
2222
COPY build-docker.xml ./build.xml
2323
COPY ivy.xml .
2424
COPY ivysettings.xml .
@@ -31,8 +31,8 @@ RUN ant -buildfile build.xml init-ivy
3131
RUN ant -buildfile build.xml make
3232

3333

34-
# Use a smaller OpenJDK image for running the application
35-
FROM openjdk:11-jre-slim
34+
# Use a smaller OpenJDK image for running the application (the name you choose here will be given to the created image)
35+
FROM openjdk:11-jre-slim AS lpm-wonderland
3636

3737
# Set the working directory inside the container
3838
WORKDIR /app

0 commit comments

Comments
 (0)