File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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)
22FROM 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
1919WORKDIR /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.
2222COPY build-docker.xml ./build.xml
2323COPY ivy.xml .
2424COPY ivysettings.xml .
@@ -31,8 +31,8 @@ RUN ant -buildfile build.xml init-ivy
3131RUN 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
3838WORKDIR /app
You can’t perform that action at this time.
0 commit comments