Skip to content

Commit c7a1f1f

Browse files
committed
[FlINK-36392] fix path to MAVEN_HOME
TIL M2_HOME is deprecated/unsupported...
1 parent 8a66614 commit c7a1f1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
ARG JAVA_VERSION=11
2020
FROM maven:3.8.8-eclipse-temurin-${JAVA_VERSION} AS build
2121
ARG SKIP_TESTS=true
22-
ARG M2_HOME=${HOME}/m2
22+
ARG MAVEN_HOME=${HOME}/.m2
2323

2424
WORKDIR /app
2525

2626
COPY . .
2727

28-
RUN --mount=type=bind,source=${M2_HOME},target=/root/.m2 \
28+
RUN --mount=type=bind,source=${MAVEN_HOME},target=/root/.m2 \
2929
mvn -ntp clean install \
3030
-pl flink-kubernetes-standalone,flink-kubernetes-operator-api,flink-kubernetes-operator,flink-autoscaler,flink-kubernetes-webhook -DskipTests=$SKIP_TESTS
3131

0 commit comments

Comments
 (0)