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)
2
2
FROM openjdk:11-jdk-slim AS builder
3
3
4
4
# Set environment variables for ANT and IVY versions
@@ -18,7 +18,7 @@ ENV PATH="${PATH}:${ANT_HOME}/bin"
18
18
# Set the working directory inside the container
19
19
WORKDIR /app
20
20
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.
22
22
COPY build-docker.xml ./build.xml
23
23
COPY ivy.xml .
24
24
COPY ivysettings.xml .
@@ -31,8 +31,8 @@ RUN ant -buildfile build.xml init-ivy
31
31
RUN ant -buildfile build.xml make
32
32
33
33
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
36
36
37
37
# Set the working directory inside the container
38
38
WORKDIR /app
You can’t perform that action at this time.
0 commit comments