forked from soramitsu/soramitsu-iroha
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.build
26 lines (21 loc) · 964 Bytes
/
Dockerfile.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM archlinux:base-devel
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
POETRY_HOME=/opt/poetry \
TORII_API_PORT_MIN=8080 \
TORII_API_PORT_MAX=8083
ENV PATH=$POETRY_HOME/bin:$PATH
RUN pacman -Syu rustup mold musl rust-musl openssl libgit2 jq \
git docker docker-buildx docker-compose \
python python-pip --noconfirm --disable-download-timeout && \
curl -sSL https://install.python-poetry.org | python3 -
RUN rustup toolchain install nightly-2024-09-09-x86_64-unknown-linux-gnu
RUN rustup default nightly-2024-09-09-x86_64-unknown-linux-gnu
RUN rustup component add llvm-tools-preview clippy
RUN rustup component add rust-src
RUN rustup component add rustfmt
RUN rustup target add wasm32-unknown-unknown
RUN cargo install grcov
# TODO: Figure out a way to pull in libgit2, which doesn't crash if this useless variable is gone.
RUN git config --global --add safe.directory .