Skip to content

Commit

Permalink
fix(docker): Use the recommend fix fro Liferay x Java
Browse files Browse the repository at this point in the history
Signed-off-by: Helio Chissini de Castro <[email protected]>
  • Loading branch information
heliocastro committed Aug 11, 2023
1 parent 51e8407 commit 3bf53a1
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,12 @@ COPY --from=sw360thriftbuild /usr/local/bin/thrift /usr/local/bin/thrift
# So when decide to use as development, only this last stage
# is triggered by buildkit images

FROM eclipse-temurin:11.0.19_7-jdk-jammy as sw360build
FROM maven:3.9-eclipse-temurin-11 as sw360build

# Thanks to Liferay, we need fix the java version
ENV MAVEN_VERSION=3.9.4
ENV MAVEN_HOME /usr/share/maven
ARG BASE_URL=https://downloads.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries
ARG COUCHDB_HOST=localhost

RUN set -eux; curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz
RUN mkdir -p ${MAVEN_HOME} ${MAVEN_HOME}/ref \
&& tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz -C ${MAVEN_HOME} --strip-components=1 \
&& ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn
# Thanks to Liferay, we need fix the java version
ENV _JAVA_OPTIONS='-Djdk.util.zip.disableZip64ExtraFieldValidation=true'

WORKDIR /build

Expand Down

0 comments on commit 3bf53a1

Please sign in to comment.