-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from joehoyle/linux-arm
Build for Linux Arm + PHP versions
- Loading branch information
Showing
2 changed files
with
106 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Define versions used to select image versions | ||
# (ARGs declared before FROM can't be used outside of FROMs) | ||
ARG FROM_PHP=8.0 | ||
|
||
# Select distro | ||
ARG FROM_DISTRO=bullseye | ||
|
||
FROM php:${FROM_PHP}-fpm-${FROM_DISTRO} | ||
|
||
RUN apt-get update && apt install curl build-essential gcc libclang-dev make -y | ||
|
||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
|
||
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
WORKDIR /code | ||
ENTRYPOINT [ "" ] |