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