Skip to content

Commit

Permalink
Add Rust support to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lanedirt committed Jan 5, 2025
1 parent 4a511e4 commit bd2f010
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ RUN apt-get update && apt-get install -y \
git \
curl


# Install Rust toolchain
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

# Install PHP FFI development files
RUN apt-get update && apt-get install -y \
pkg-config \
libffi-dev
RUN docker-php-ext-install ffi

# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit bd2f010

Please sign in to comment.