mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
42 lines
1.1 KiB
Docker
42 lines
1.1 KiB
Docker
FROM ubuntu:20.04
|
|
|
|
ADD ubuntu20_sources.list /etc/apt/sources.list
|
|
|
|
RUN echo 'Asia/Shanghai' >/etc/timezone
|
|
|
|
# Update new packages
|
|
RUN apt-get update
|
|
RUN DEBIAN_FRONTEND=noninteractive apt install -y tzdata
|
|
RUN apt-get install -y \
|
|
build-essential \
|
|
make \
|
|
g++ \
|
|
gcc \
|
|
git \
|
|
vim \
|
|
cmake \
|
|
sudo \
|
|
ninja-build \
|
|
curl
|
|
|
|
RUN git clone --branch v1.6.1 https://gitee.com/mirrors/google-benchmark benchmark && \
|
|
cd benchmark && \
|
|
git clone https://gitee.com/mirrors/googletest && \
|
|
cmake -E make_directory "build" && \
|
|
cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../ && \
|
|
cmake --build "build" --config Release && \
|
|
sudo cmake --build "build" --config Release --target install
|
|
|
|
|
|
# Get Rust
|
|
ENV RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
|
|
ENV RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
|
|
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
|
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
|
|
RUN apt-get install -y python3
|
|
RUN git config --global --add safe.directory /usr/src/pikascript
|
|
|