25
25
# {docker|podman} build \
26
26
# --build-arg BUILD_BASE_IMAGE=maven:3.8.2-openjdk-11 \
27
27
# --build-arg BASE_IMAGE=openjdk:11 \
28
- # -t apache/drill-openjdk-11
28
+ # -t apache/drill-openjdk-11
29
29
30
- # Unless otherwise specified, the intermediate container image will be
30
+ # Unless otherwise specified, the intermediate container image will be
31
31
# based on the following default.
32
- ARG BUILD_BASE_IMAGE=maven:3.8.2 -openjdk-8
32
+ ARG BUILD_BASE_IMAGE=maven:3-openjdk-17
33
33
34
34
# Unless otherwise specified, the final container image will be based on
35
35
# the following default.
36
- ARG BASE_IMAGE=openjdk:8
36
+ ARG BASE_IMAGE=openjdk:17
37
37
38
38
# Uses intermediate image for building Drill to reduce target image size
39
39
FROM $BUILD_BASE_IMAGE as build
@@ -44,7 +44,7 @@ WORKDIR /src
44
44
COPY . .
45
45
46
46
# Builds Drill
47
- RUN mvn -Dmaven.artifact.threads=5 -T1C clean install -DskipTests
47
+ RUN mvn clean install -DskipTests
48
48
49
49
# Get project version and copy built binaries into /opt/drill directory
50
50
RUN VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) \
@@ -54,7 +54,7 @@ RUN VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --n
54
54
55
55
# Target image
56
56
57
- # Set the BASE_IMAGE build arg when you invoke docker build.
57
+ # Set the BASE_IMAGE build arg when you invoke docker build.
58
58
FROM $BASE_IMAGE
59
59
60
60
# Starts Drill in embedded mode and connects to Sqlline
0 commit comments