2023-06-26 21:34:45 +02:00
|
|
|
FROM php:8.2-zts-bullseye
|
2021-05-19 10:45:39 +02:00
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
RUN apt update -y && apt upgrade -y
|
|
|
|
RUN apt install lsb-release wget gnupg software-properties-common -y
|
|
|
|
RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
|
|
|
|
|
|
|
|
ENV RUSTUP_HOME=/rust
|
|
|
|
ENV CARGO_HOME=/cargo
|
|
|
|
ENV PATH=/cargo/bin:/rust/bin:$PATH
|
|
|
|
|
|
|
|
RUN (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly --no-modify-path) && rustup default nightly
|
|
|
|
|
2021-11-20 02:19:02 +01:00
|
|
|
ENTRYPOINT [ "/cargo/bin/cargo", "build", "--all", "--release" ]
|