22 lines
511 B
Docker
22 lines
511 B
Docker
FROM rust:latest
|
|
|
|
RUN apt-get update && apt-get install -y clang libclang-dev cmake build-essential git unzip autoconf libtool awscli
|
|
|
|
RUN git clone https://github.com/google/protobuf.git && \
|
|
cd protobuf && \
|
|
./autogen.sh && \
|
|
./configure && \
|
|
make && \
|
|
make install && \
|
|
ldconfig && \
|
|
make clean && \
|
|
cd .. && \
|
|
rm -r protobuf
|
|
|
|
|
|
RUN mkdir -p /cache/cargocache && chmod -R ugo+rwX /cache/cargocache
|
|
|
|
ENV CARGO_HOME /cache/cargocache
|
|
|
|
RUN rustup component add rustfmt clippy
|