Commit deca457d authored by nagayama15's avatar nagayama15

DockerfileにRustのツールチェインを追加

parent e1465d11
...@@ -4,13 +4,17 @@ COPY . /nykk ...@@ -4,13 +4,17 @@ COPY . /nykk
WORKDIR /nykk WORKDIR /nykk
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
xz-utils \
build-essential \ build-essential \
ca-certificates \
curl \ 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 \
&& echo 'export PATH=/clang_7.0.0/bin:$PATH' >> ~/.bashrc \ && curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
&& echo 'export LD_LIBRARY_PATH=/clang_7.0.0/lib:LD_LIBRARY_PATH' >> ~/.bashrc
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
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