-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (20 loc) · 1.25 KB
/
Dockerfile
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
27
28
FROM vitasdk/buildscripts:latest as build
RUN apk add --no-cache git curl bash
RUN git clone https://github.com/vitasdk/vdpm.git --depth=1 && \
cd vdpm/ && chmod +x ./*.sh && \
./install-all.sh && cd .. && rm -fr vdpm/
FROM vitasdk/buildscripts:latest
RUN apk add --no-cache bash make pkgconf curl fakeroot libarchive-tools file xz cmake sudo
COPY --from=build --chown=user ${VITASDK} ${VITASDK}
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
# Install rust nightly with all the components required to build std
# build-base (mainly cc and ld) is required to build std.
RUN apk add --no-cache rustup build-base jq perl clang llvm openssl libressl-dev pkgconfig
ARG RUST_TOOLCHAIN=nightly
RUN rustup-init -y --default-toolchain ${RUST_TOOLCHAIN} -c rust-src && \
ln -s /usr/local/rustup/toolchains/${RUST_TOOLCHAIN}-x86_64-unknown-linux-musl /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-musl || true
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | ash && \
cargo binstall --no-confirm --no-symlinks \
cargo-make cargo-vita cargo-hack cargo-udeps cargo-machete cargo-deny cargo-release