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"
|
||||
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user