Merge pull request #57 from netty/docker-image-reduction

Make the docker image layers take up less space
This commit is contained in:
Chris Vest 2021-05-06 10:49:51 +02:00 committed by GitHub
commit 3b8aabbd10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -6,15 +6,15 @@ RUN dnf -y install file findutils unzip zip libXtst-devel libXt-devel libXrender
# Build panama-foreign openjdk
WORKDIR /home/build
RUN git clone --branch foreign-memaccess+abi https://github.com/openjdk/panama-foreign.git panama-foreign
RUN git clone --depth 1 --branch foreign-memaccess+abi https://github.com/openjdk/panama-foreign.git panama-foreign
WORKDIR /home/build/panama-foreign
RUN chmod +x configure
RUN ./configure --with-debug-level=fastdebug \
--with-toolchain-type=clang \
--with-vendor-name=jackalope \
--enable-warnings-as-errors=no
RUN make images
ENV JAVA_HOME="/home/build/panama-foreign/build/linux-x86_64-server-fastdebug/images/jdk"
RUN make images && mv build/linux-x86_64-server-fastdebug/images/jdk /home/jdk && rm -fr *
ENV JAVA_HOME="/home/jdk"
# Prepare our own build environment
WORKDIR /home/build