forked from haiwan/sledge
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.2 KiB
62 lines
1.2 KiB
5 years ago
|
# Inspired by lucet's Dockerfile.
|
||
|
|
||
|
# using ubuntu 18 docker image
|
||
|
FROM ubuntu:bionic
|
||
|
|
||
|
# install some basic packages
|
||
|
RUN apt-get update \
|
||
|
&& apt-get install -y --no-install-recommends \
|
||
|
build-essential \
|
||
|
curl \
|
||
|
git \
|
||
|
python3-dev \
|
||
|
python3-pip \
|
||
|
cmake \
|
||
|
ca-certificates \
|
||
|
libssl-dev \
|
||
|
pkg-config \
|
||
|
gcc \
|
||
|
g++ \
|
||
5 years ago
|
clang-8 \
|
||
|
clang-tools-8 \
|
||
|
llvm-8 \
|
||
|
llvm-8-dev \
|
||
5 years ago
|
libc++-dev \
|
||
|
libc++abi-dev \
|
||
5 years ago
|
lld-8 \
|
||
|
lldb-8 \
|
||
|
libclang-8-dev \
|
||
|
libclang-common-8-dev \
|
||
5 years ago
|
vim \
|
||
|
apache2 \
|
||
|
subversion \
|
||
|
libapache2-mod-svn \
|
||
|
libsvn-dev \
|
||
|
binutils-dev \
|
||
|
build-essential \
|
||
|
automake \
|
||
|
libtool \
|
||
|
strace \
|
||
|
less \
|
||
|
libuv1-dev \
|
||
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
# set to use our installed clang version
|
||
5 years ago
|
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100
|
||
|
RUN update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-8 100
|
||
5 years ago
|
|
||
|
# set LD_LIBRARY_PATH
|
||
|
ENV LD_LIBRARY_PATH=/usr/local/lib
|
||
|
|
||
5 years ago
|
RUN curl https://sh.rustup.rs -sSf | \
|
||
5 years ago
|
sh -s -- --default-toolchain stable -y
|
||
5 years ago
|
ENV PATH=/root/.cargo/bin:$PATH
|
||
5 years ago
|
|
||
5 years ago
|
RUN rustup component add rustfmt
|
||
5 years ago
|
RUN rustup target add wasm32-wasi
|
||
|
|
||
|
RUN cargo install --debug cargo-audit cargo-watch rsign2
|
||
|
|
||
5 years ago
|
ENV PATH=/opt/awsm/bin:$PATH
|
||
|
|