20 lines
448 B
Docker
20 lines
448 B
Docker
FROM rust:latest
|
|
|
|
RUN rustup component add rustfmt
|
|
|
|
RUN apt-get update && apt-get install -y clang libclang-dev cmake build-essential git unzip autoconf libtool
|
|
|
|
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 /cargocache && chmod -R ugo+rwX /cargocache
|