mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-28 02:03:32 +00:00
Update docker file, use makefile in CI
This commit is contained in:
29
Dockerfile
29
Dockerfile
@@ -1,29 +1,4 @@
|
||||
FROM rust:latest
|
||||
|
||||
RUN apt-get update && apt-get install -y clang libclang-dev cmake build-essential git unzip autoconf libtool awscli software-properties-common
|
||||
|
||||
RUN add-apt-repository -y ppa:git-core/ppa
|
||||
|
||||
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||
|
||||
RUN apt-get install -y git-lfs
|
||||
|
||||
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 apt-get install -y nodejs npm
|
||||
RUN npm install -g ganache-cli --unsafe-perm
|
||||
|
||||
RUN mkdir -p /cache/cargocache && chmod -R ugo+rwX /cache/cargocache
|
||||
|
||||
ENV CARGO_HOME /cache/cargocache
|
||||
|
||||
RUN rustup component add rustfmt clippy
|
||||
COPY . lighthouse
|
||||
RUN cd lighthouse && cargo install --path lighthouse
|
||||
|
||||
Reference in New Issue
Block a user