# SPDX-License-Identifier: APACHE-2.0 AND MIT FROM ubuntu:18.04 RUN apt-get update && apt-get install -y make gcc libssl-dev pkg-config curl snapd # Install flatbuffers through snap. RUN snap install core RUN snap install flatbuffers --edge #RUN apt-get update && apt-get install -y rustc cargo # ubuntu18.04 doesn't provide the rustup through the standard package. RUN curl https://sh.rustup.rs -sSf > rustup-init.sh RUN sh rustup-init.sh -y # Let's update the rustc and the like to include the latest features, # especially async, as explained in the async book: # https://rust-lang.github.io/async-book/01_getting_started/05_http_server_example.html ENV PATH "/root/.cargo/bin:${PATH}" RUN rustup update nightly RUN rustup default nightly RUN rustup component add clippy WORKDIR /home/build CMD ["make"]