More cleanups

This commit is contained in:
Sergey Yelin 2020-11-05 16:25:32 +03:00
parent 93347817c3
commit 9f398ee1cc
No known key found for this signature in database
GPG Key ID: 0B653F3417EAEC54

View File

@ -28,13 +28,13 @@ ENV SWAGGER_BINDIR="/usr/local/bin"
ENV SWAGGER_JARFILE="swagger-codegen-cli.jar"
RUN set -xe \
&& buildDeps=' \
flex \
bison \
libboost-all-dev \
' \
&& buildDeps=' \
flex \
bison \
libboost-all-dev \
' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& apt-get install -y --no-install-recommends $buildDeps \
&& mkdir -p /usr/src \
# Install Java
@ -132,9 +132,9 @@ java -jar "${SWAGGER_LIBDIR}/${SWAGGER_JARFILE}" $*\n' \
&& rm -rf /root/.m2 \
&& rm -rf /root/.cache \
&& rm -rf /opt/maven \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME=/opt/java/openjdk
ENV PATH="/opt/java/openjdk/bin:$PATH"