mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-12-02 09:37:51 +01:00
8b87e4038e
* Bump cargo-php to 0.1.8 * Fix docker zts installation
15 lines
498 B
Docker
15 lines
498 B
Docker
FROM php:8.2-zts-bullseye
|
|
|
|
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
|
|
|
|
ENTRYPOINT [ "/cargo/bin/cargo", "build", "--all", "--release" ] |