Commit afaa67f8 authored by nagayama15's avatar nagayama15

Dockerイメージのサイズを最小化

parent dc7e4859
...@@ -7,12 +7,8 @@ ENV PATH=/clang-7.0.0/bin:$PATH ...@@ -7,12 +7,8 @@ ENV PATH=/clang-7.0.0/bin:$PATH
ENV PATH=/root/.cargo/bin:$PATH ENV PATH=/root/.cargo/bin:$PATH
ENV LD_LIBRARY_PATH=/clang-7.0.0/lib:$LD_LIBRARY_PATH ENV LD_LIBRARY_PATH=/clang-7.0.0/lib:$LD_LIBRARY_PATH
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN BUILD_DEPS='autoconf build-essential ca-certificates curl xz-utils' \
autoconf \ && apt-get update && apt-get install -y --no-install-recommends $BUILD_DEPS \
build-essential \
ca-certificates \
curl \
xz-utils \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& curl -SL http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz | tar -xJC / \ && curl -SL http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz | tar -xJC / \
&& mv /clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-16.04 /clang-7.0.0 \ && mv /clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-16.04 /clang-7.0.0 \
...@@ -21,13 +17,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ...@@ -21,13 +17,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& cd /jemalloc-5.1.0 \ && cd /jemalloc-5.1.0 \
&& ./autogen.sh \ && ./autogen.sh \
&& make \ && make \
&& mkdir -p /usr/local/lib \
&& mv lib/libjemalloc.a /usr/local/lib/libjemalloc.a \ && mv lib/libjemalloc.a /usr/local/lib/libjemalloc.a \
&& cd - \ && cd - \
&& rm -rf /jemalloc-5.1.0 && rm -rf /jemalloc-5.1.0 \
&& make \
RUN clang -v \ && rm /usr/local/lib/libjemalloc.a \
&& gcc -v \ && rustup self uninstall -y \
&& rustc --version && rm -rf /clang-7.0.0 \
&& apt-get purge -y --auto-remove $BUILD_DEPS
CMD [ "/bin/bash" ] CMD [ "/bin/bash" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment