add php versions
This commit is contained in:
1 parent
852410d52d
commit
b5abf41fb0
3 files changed
+89
-1
No files matched your search
@@ -0,0 +1,39 @@
|
||||
FROM registry.bobert.me/anthorob/coder-images:base
|
||||
|
||||
USER root
|
||||
|
||||
RUN apt-get update && \
|
||||
add-apt-repository ppa:ondrej/php && \
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
php7.4 \
|
||||
php7.4-cli \
|
||||
php7.4-common \
|
||||
php7.4-curl \
|
||||
php7.4-mbstring \
|
||||
php7.4-mysql \
|
||||
php7.4-xml \
|
||||
php7.4-zip \
|
||||
php7.4-bcmath \
|
||||
php7.4-soap \
|
||||
php7.4-readline \
|
||||
php7.4-intl \
|
||||
php7.4-opcache \
|
||||
php7.4-gd \
|
||||
php7.4-pgsql \
|
||||
php7.4-sqlite3 \
|
||||
php7.4-tokenizer \
|
||||
php7.4-fileinfo && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN update-alternatives --install /usr/bin/php php /usr/bin/php7.4 74 && \
|
||||
update-alternatives --set php /usr/bin/php7.4
|
||||
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
ENV NVM_DIR=/home/coder/.nvm
|
||||
RUN mkdir -p $NVM_DIR && \
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
|
||||
|
||||
USER coder
|
||||
WORKDIR /home/coder
|
||||
Reference in new issue
Block a user