Switch to the slim maven Docker base image, significantly faster image pulls. (#34)

This commit is contained in:
Brendan Burns
2017-12-20 20:19:55 -08:00
committed by GitHub
parent b43a0778f0
commit 0300fdf86c

View File

@@ -12,13 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM maven:3.5-jdk-7
FROM maven:3.5-jdk-7-slim
ARG SWAGGER_CODEGEN_COMMIT
ARG GENERATION_XML_FILE
ARG SWAGGER_CODEGEN_USER_ORG=swagger-api
# Install preprocessing script requirements
RUN apt-get update && apt-get -y install python-pip && pip install urllib3
RUN apt-get update && apt-get -y install git python-pip && pip install urllib3
# Check out specific commit of swagger-codegen
RUN mkdir /source && \
@@ -33,6 +33,7 @@ RUN cd /source/swagger-codegen && \
cp -r /root/.m2/* /usr/share/maven/ref
# Install Autorest
RUN apt-get update && apt-get -qq -y install libunwind8 libicu52 libssl1.0 liblttng-ust0 libcurl3 libuuid1 libkrb5-3 zlib1g
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get update && apt-get -y install \
nodejs \