2019-02-14 01:09:18 +00:00
|
|
|
FROM rust:latest
|
|
|
|
|
2019-05-07 14:03:36 +00:00
|
|
|
RUN apt-get update && apt-get install -y clang libclang-dev cmake build-essential git unzip autoconf libtool awscli
|
2019-02-14 01:09:18 +00:00
|
|
|
|
|
|
|
RUN git clone https://github.com/google/protobuf.git && \
|
|
|
|
cd protobuf && \
|
|
|
|
./autogen.sh && \
|
|
|
|
./configure && \
|
|
|
|
make && \
|
|
|
|
make install && \
|
|
|
|
ldconfig && \
|
|
|
|
make clean && \
|
|
|
|
cd .. && \
|
|
|
|
rm -r protobuf
|
|
|
|
|
|
|
|
|
2019-05-07 04:00:15 +00:00
|
|
|
RUN mkdir -p /cache/cargocache && chmod -R ugo+rwX /cache/cargocache
|
2019-03-12 11:26:01 +00:00
|
|
|
|
2019-05-07 04:00:15 +00:00
|
|
|
ENV CARGO_HOME /cache/cargocache
|
2019-03-12 11:26:01 +00:00
|
|
|
|
|
|
|
RUN rustup component add rustfmt clippy
|