Skip to content

Commit 036ee38

Browse files
committed
Add Dockerfile for build
1 parent 845eb79 commit 036ee38

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Define versions used to select image versions
2+
# (ARGs declared before FROM can't be used outside of FROMs)
3+
ARG FROM_PHP=8.0
4+
5+
# Select distro
6+
ARG FROM_DISTRO=bullseye
7+
8+
FROM php:${FROM_PHP}-fpm-${FROM_DISTRO}
9+
10+
RUN apt-get update && apt install curl build-essential gcc libclang-dev make -y
11+
12+
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
13+
14+
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
15+
ENV PATH="/root/.cargo/bin:${PATH}"
16+
17+
WORKDIR /code
18+
ENTRYPOINT [ "" ]

0 commit comments

Comments
 (0)