Skip to content

Commit 2c5482b

Browse files
committed
added support for php 7.3
1 parent 790ead7 commit 2c5482b

File tree

10 files changed

+11795
-0
lines changed

10 files changed

+11795
-0
lines changed

php7.3/cli/Dockerfile

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
FROM php:7.3-cli
2+
3+
MAINTAINER ReadyMadeHost
4+
5+
# Installing required packages
6+
RUN apt-get update && apt-get upgrade -y
7+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
8+
apt-transport-https \
9+
libicu-dev \
10+
libonig-dev \
11+
libzip-dev \
12+
libpng-dev \
13+
libcurl4-openssl-dev \
14+
pkg-config \
15+
libssl-dev \
16+
git \
17+
vim \
18+
zip \
19+
unzip \
20+
wget \
21+
screenfetch \
22+
mariadb-client
23+
24+
# Installing extensions
25+
RUN docker-php-ext-install \
26+
pdo_mysql \
27+
intl \
28+
mbstring \
29+
zip \
30+
exif \
31+
pcntl \
32+
bcmath \
33+
opcache \
34+
gd
35+
36+
# Installing others dependencies
37+
RUN pecl install redis
38+
RUN docker-php-ext-enable redis
39+
40+
# Updating php.ini
41+
ADD conf/php.ini /usr/local/etc/php/php.ini
42+
43+
# Installing composer
44+
VOLUME /root/.composer/cache
45+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
46+
47+
# Installing symfony cli
48+
RUN wget https://get.symfony.com/cli/installer -O - | bash
49+
RUN echo 'export PATH="$HOME/.symfony/bin:$PATH"' >> ~/.bashrc
50+
51+
# Installing node
52+
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
53+
RUN apt-get -y install nodejs
54+
55+
# Manage project and add scripts
56+
RUN mkdir /var/www/project
57+
ADD manage-project-permission.sh /root/manage-project-permission.sh
58+
RUN chmod +x /root/manage-project-permission.sh
59+
RUN echo 'alias mpp="/root/manage-project-permission.sh"' >> /root/.bashrc
60+
RUN /root/manage-project-permission.sh
61+
ADD docker-entrypoint.sh /root/docker-entrypoint.sh
62+
RUN chmod +x /root/docker-entrypoint.sh
63+
64+
CMD ["/root/docker-entrypoint.sh"]

0 commit comments

Comments
 (0)