Commit 52eaf717 authored by nagayama15's avatar nagayama15

Dockerfileを更新

parent 7927eed4
......@@ -3,18 +3,31 @@ FROM ubuntu:18.04
COPY . /nykk
WORKDIR /nykk
ENV PATH=/clang-7.0.0/bin:$PATH
ENV PATH=/root/.cargo/bin:$PATH
ENV LD_LIBRARY_PATH=/clang-7.0.0/lib:$LD_LIBRARY_PATH
RUN apt-get update && apt-get install -y --no-install-recommends \
autoconf \
build-essential \
ca-certificates \
curl \
xz-utils \
&& 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 / \
&& mv /clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-16.04 /clang_7.0.0 \
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
&& mv /clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-16.04 /clang-7.0.0 \
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable \
&& curl -SL https://github.com/jemalloc/jemalloc/archive/5.1.0.tar.gz | tar -xzC / \
&& cd /jemalloc-5.1.0 \
&& ./autogen.sh \
&& make \
&& mkdir -p /usr/local/lib \
&& mv lib/libjemalloc.a /usr/local/lib/libjemalloc.a \
&& cd - \
&& rm -rf /jemalloc-5.1.0
ENV PATH=/clang_7.0.0/bin:$PATH
ENV PATH=/root/.cargo/bin:$PATH
ENV LD_LIBRARY_PATH=/clang_7.0.0/lib:$LD_LIBRARY_PATH
RUN clang -v \
&& gcc -v \
&& rustc --version
CMD [ "/bin/bash" ]
......@@ -8,7 +8,7 @@ Language: C++17
OS: Ubuntu 18.04
Compilers: GCC 7.3.0, Clang 7.0.0
Compilers: GCC 7.3.0, Clang 7.0.0, rustc 1.31.1
Libraries: LLVM 7.0
......
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