[base-runner] Fix build so that go layer isn't saved. (#8861)

This commit is contained in:
jonathanmetzman 2022-10-26 15:59:09 -04:00 committed by GitHub
parent f83e9eea26
commit 474411cbb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -66,8 +66,7 @@ ENV PATH $PATH:$GOPATH/bin
COPY gocoverage $GOPATH/gocoverage COPY gocoverage $GOPATH/gocoverage
COPY install_go.sh / COPY install_go.sh /
RUN /install_go.sh && rm /install_go.sh RUN /install_go.sh && rm -rf /install_go.sh /root/.go
RUN rm -rf /root/.go
# Install OpenJDK 15 and trim its size by removing unused components. # Install OpenJDK 15 and trim its size by removing unused components.
ENV JAVA_HOME=/usr/lib/jvm/java-15-openjdk-amd64 ENV JAVA_HOME=/usr/lib/jvm/java-15-openjdk-amd64