mirror of
https://github.com/valitydev/image-build-erlang.git
synced 2024-11-06 10:55:22 +00:00
More cleanups
This commit is contained in:
parent
93347817c3
commit
9f398ee1cc
18
Dockerfile
18
Dockerfile
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user